diff --git a/src/lib/components/workspace/Functions/FunctionEditor.svelte b/src/lib/components/workspace/Functions/FunctionEditor.svelte
index ec65bae5d..63f8951e5 100644
--- a/src/lib/components/workspace/Functions/FunctionEditor.svelte
+++ b/src/lib/components/workspace/Functions/FunctionEditor.svelte
@@ -315,13 +315,15 @@ class Pipe:
-
+
+
+
@@ -329,31 +331,37 @@ class Pipe:
-
diff --git a/src/lib/components/workspace/Tools/ToolkitEditor.svelte b/src/lib/components/workspace/Tools/ToolkitEditor.svelte
index 362501595..dc6376205 100644
--- a/src/lib/components/workspace/Tools/ToolkitEditor.svelte
+++ b/src/lib/components/workspace/Tools/ToolkitEditor.svelte
@@ -203,13 +203,15 @@ class Tools:
-
+
+
+
@@ -217,31 +219,41 @@ class Tools:
-
diff --git a/src/routes/(app)/workspace/+layout.svelte b/src/routes/(app)/workspace/+layout.svelte
index 09d5897ca..560e1adb3 100644
--- a/src/routes/(app)/workspace/+layout.svelte
+++ b/src/routes/(app)/workspace/+layout.svelte
@@ -30,24 +30,6 @@
await goto('/');
}
- await Promise.all([
- (async () => {
- models.set(await getModels(localStorage.token));
- })(),
- (async () => {
- knowledge.set(await getKnowledgeItems(localStorage.token));
- })(),
- (async () => {
- prompts.set(await getPrompts(localStorage.token));
- })(),
- (async () => {
- tools.set(await getTools(localStorage.token));
- })(),
- (async () => {
- functions.set(await getFunctions(localStorage.token));
- })()
- ]);
-
loaded = true;
});
@@ -136,7 +118,7 @@
-
diff --git a/src/routes/(app)/workspace/functions/+page.svelte b/src/routes/(app)/workspace/functions/+page.svelte
index 8c6c212fa..8254485b9 100644
--- a/src/routes/(app)/workspace/functions/+page.svelte
+++ b/src/routes/(app)/workspace/functions/+page.svelte
@@ -1,5 +1,19 @@
-
+{#if $functions !== null}
+
+{/if}
diff --git a/src/routes/(app)/workspace/knowledge/+page.svelte b/src/routes/(app)/workspace/knowledge/+page.svelte
index 7994ae40d..76acaac14 100644
--- a/src/routes/(app)/workspace/knowledge/+page.svelte
+++ b/src/routes/(app)/workspace/knowledge/+page.svelte
@@ -1,5 +1,19 @@
-
+{#if $knowledge !== null}
+
+{/if}
diff --git a/src/routes/(app)/workspace/models/+page.svelte b/src/routes/(app)/workspace/models/+page.svelte
index f656ad781..ed8474894 100644
--- a/src/routes/(app)/workspace/models/+page.svelte
+++ b/src/routes/(app)/workspace/models/+page.svelte
@@ -1,5 +1,18 @@
-
+{#if $models !== null}
+
+{/if}
diff --git a/src/routes/(app)/workspace/prompts/+page.svelte b/src/routes/(app)/workspace/prompts/+page.svelte
index 48c6e65c6..fbe9918b7 100644
--- a/src/routes/(app)/workspace/prompts/+page.svelte
+++ b/src/routes/(app)/workspace/prompts/+page.svelte
@@ -1,5 +1,19 @@
-
+{#if $prompts !== null}
+
+{/if}
diff --git a/src/routes/(app)/workspace/tools/+page.svelte b/src/routes/(app)/workspace/tools/+page.svelte
index e745cfa80..d87cac6c8 100644
--- a/src/routes/(app)/workspace/tools/+page.svelte
+++ b/src/routes/(app)/workspace/tools/+page.svelte
@@ -1,5 +1,19 @@
-
+{#if $tools !== null}
+
+{/if}