mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
fix
This commit is contained in:
parent
340b399fc2
commit
7cec88c776
1 changed files with 9 additions and 4 deletions
|
|
@ -89,12 +89,16 @@
|
||||||
valves = null;
|
valves = null;
|
||||||
valves_spec = null;
|
valves_spec = null;
|
||||||
|
|
||||||
|
if (PIPELINES_LIST.length > 0) {
|
||||||
pipelines = await getPipelines(localStorage.token, selectedPipelinesUrlIdx);
|
pipelines = await getPipelines(localStorage.token, selectedPipelinesUrlIdx);
|
||||||
|
|
||||||
if (pipelines.length > 0) {
|
if (pipelines.length > 0) {
|
||||||
selectedPipelineIdx = 0;
|
selectedPipelineIdx = 0;
|
||||||
await getValves(selectedPipelineIdx);
|
await getValves(selectedPipelineIdx);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
pipelines = [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const addPipelineHandler = async () => {
|
const addPipelineHandler = async () => {
|
||||||
|
|
@ -136,6 +140,7 @@
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
PIPELINES_LIST = await getPipelinesList(localStorage.token);
|
PIPELINES_LIST = await getPipelinesList(localStorage.token);
|
||||||
|
console.log(PIPELINES_LIST);
|
||||||
|
|
||||||
if (PIPELINES_LIST.length > 0) {
|
if (PIPELINES_LIST.length > 0) {
|
||||||
selectedPipelinesUrlIdx = PIPELINES_LIST[0]['idx'];
|
selectedPipelinesUrlIdx = PIPELINES_LIST[0]['idx'];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue