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

refac

parent cf1c8be8
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
if (res) { if (res) {
toast.success('Valves updated successfully'); toast.success('Valves updated successfully');
setPipelines();
saveHandler(); saveHandler();
} }
} else { } else {
...@@ -45,12 +46,16 @@ ...@@ -45,12 +46,16 @@
} }
}; };
onMount(async () => { const setPipelines = async () => {
pipelines = await getPipelines(localStorage.token); pipelines = await getPipelines(localStorage.token);
if (pipelines.length > 0) { if (pipelines.length > 0) {
selectedPipelineIdx = 0; selectedPipelineIdx = 0;
} }
};
onMount(async () => {
setPipelines();
}); });
</script> </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