From 8f4104fb7ab12b3adac53f54b51bf7d6f70dc7d8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek <tim@openwebui.com> Date: Mon, 19 May 2025 00:13:03 +0400 Subject: [PATCH] refac --- src/lib/components/admin/Settings/Documents.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index d1ba533c0..32efd3b54 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/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; });