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'] });