mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-04 23:55:22 +00:00
refac
This commit is contained in:
parent
cf1c8be85f
commit
834bdf46be
1 changed files with 6 additions and 1 deletions
|
|
@ -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 a new issue