Timothy Jaeryang Baek 4 月之前
父節點
當前提交
8f4104fb7a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib/components/admin/Settings/Documents.svelte

+ 1 - 1
src/lib/components/admin/Settings/Documents.svelte

@@ -197,7 +197,7 @@
 		await setEmbeddingConfig();
 
 		const config = await getRAGConfig(localStorage.token);
-		config.ALLOWED_FILE_EXTENSIONS = config.ALLOWED_FILE_EXTENSIONS.join(', ');
+		config.ALLOWED_FILE_EXTENSIONS = (config?.ALLOWED_FILE_EXTENSIONS ?? []).join(', ');
 
 		RAGConfig = config;
 	});