This commit is contained in:
Timothy J. Baek 2024-05-28 15:47:14 -07:00
parent cf1c8be85f
commit 834bdf46be

View File

@ -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>