From 1c7ff7b1dccdc48a191373fc3490aa2ef0b18b95 Mon Sep 17 00:00:00 2001 From: "Taylor Wilsdon (aider)" Date: Thu, 26 Dec 2024 12:22:58 -0500 Subject: [PATCH] fix: Initialize enableGoogleDriveIntegration with default value --- 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 c5424389a..b245c823d 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -249,7 +249,7 @@ fileMaxSize = res?.file.max_size ?? ''; fileMaxCount = res?.file.max_count ?? ''; - enableGoogleDriveIntegration = res.enable_google_drive_integration; + enableGoogleDriveIntegration = res.enable_google_drive_integration ?? false; console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration); if (enableGoogleDriveIntegration === undefined) { console.error('enableGoogleDriveIntegration is undefined onMount');