Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
7cec88c7
Commit
7cec88c7
authored
May 29, 2024
by
Timothy J. Baek
Browse files
fix
parent
340b399f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/lib/components/admin/Settings/Pipelines.svelte
src/lib/components/admin/Settings/Pipelines.svelte
+9
-4
No files found.
src/lib/components/admin/Settings/Pipelines.svelte
View file @
7cec88c7
...
@@ -89,12 +89,16 @@
...
@@ -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 @@
...
@@ -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'];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment