Timothy Jaeryang Baek 1 month ago
parent
commit
8f4104fb7a
1 changed files with 1 additions and 1 deletions
  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;
 	});