Timothy Jaeryang Baek 4 månader sedan
förälder
incheckning
8f4104fb7a
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;
 	});