mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
cf1c8be85f
commit
834bdf46be
@ -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 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user