From c7cec2131cef2982cce354d7a80eee6bdbb71994 Mon Sep 17 00:00:00 2001 From: "Taylor Wilsdon (aider)" Date: Thu, 26 Dec 2024 12:21:38 -0500 Subject: [PATCH] debug: Add detailed logging for Google Drive Integration state changes --- src/lib/components/admin/Settings/Documents.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 2fabe5a96..c5424389a 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -251,6 +251,11 @@ enableGoogleDriveIntegration = res.enable_google_drive_integration; console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration); + if (enableGoogleDriveIntegration === undefined) { + console.error('enableGoogleDriveIntegration is undefined onMount'); + } else { + console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration); + } } }); @@ -598,7 +603,11 @@
{$i18n.t('Enable Google Drive')}
- console.log('Google Drive Integration:', enableGoogleDriveIntegration)} /> + { + console.log('Google Drive Integration before change:', enableGoogleDriveIntegration); + enableGoogleDriveIntegration = !enableGoogleDriveIntegration; + console.log('Google Drive Integration after change:', enableGoogleDriveIntegration); + }} />