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