From 74a4f642fd891a889f3395c131acd2af384c99da Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 24 Jun 2024 10:47:40 -0700 Subject: [PATCH] refac: valves save --- src/lib/components/workspace/Functions.svelte | 12 ++++++++++-- .../components/workspace/common/ValvesModal.svelte | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index dbb050b0d..faad68214 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -4,7 +4,7 @@ const { saveAs } = fileSaver; import { WEBUI_NAME, functions, models } from '$lib/stores'; - import { onMount, getContext } from 'svelte'; + import { onMount, getContext, tick } from 'svelte'; import { createNewPrompt, deletePromptByCommand, getPrompts } from '$lib/apis/prompts'; import { goto } from '$app/navigation'; @@ -387,7 +387,15 @@ - + { + await tick(); + models.set(await getModels(localStorage.token)); + }} +/>