From 82716f3789147585862f56f9f18fb2a77d92ed39 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 20 May 2025 19:39:18 +0400 Subject: [PATCH] refac --- src/lib/components/admin/Settings/Documents.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 32efd3b54..0660dc7ae 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -170,7 +170,8 @@ await embeddingModelUpdateHandler(); } - RAGConfig.ALLOWED_FILE_EXTENSIONS = RAGConfig.ALLOWED_FILE_EXTENSIONS.split(',') + RAGConfig.ALLOWED_FILE_EXTENSIONS = (RAGConfig?.ALLOWED_FILE_EXTENSIONS ?? '') + .split(',') .map((ext) => ext.trim()) .filter((ext) => ext !== '');