diff --git a/src/lib/components/admin/Settings/Pipelines.svelte b/src/lib/components/admin/Settings/Pipelines.svelte index dda33d055..303710a05 100644 --- a/src/lib/components/admin/Settings/Pipelines.svelte +++ b/src/lib/components/admin/Settings/Pipelines.svelte @@ -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(); });