From ea28747baa35b910239aedc3f1e33b445bef4cda Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 21 Nov 2024 20:29:54 -0800 Subject: [PATCH] fix: knowledge base reset --- src/lib/components/workspace/Knowledge/KnowledgeBase.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte b/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte index 8d4b3f028..659371602 100644 --- a/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte +++ b/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte @@ -68,7 +68,7 @@ let inputFiles = null; let filteredItems = []; - $: if (knowledge) { + $: if (knowledge && knowledge.files) { fuse = new Fuse(knowledge.files, { keys: ['meta.name', 'meta.description'] });