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); + }} />