Commit 834bdf46 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent cf1c8be8
......@@ -38,6 +38,7 @@
if (res) {
toast.success('Valves updated successfully');
setPipelines();
saveHandler();
}
} else {
......@@ -45,12 +46,16 @@
}
};
onMount(async () => {
const setPipelines = async () => {
pipelines = await getPipelines(localStorage.token);
if (pipelines.length > 0) {
selectedPipelineIdx = 0;
}
};
onMount(async () => {
setPipelines();
});
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment