diff --git a/src/lib/utils/google-drive-picker.ts b/src/lib/utils/google-drive-picker.ts index fba93b11e..1fa09a73a 100644 --- a/src/lib/utils/google-drive-picker.ts +++ b/src/lib/utils/google-drive-picker.ts @@ -108,7 +108,7 @@ export const createPicker = () => { .setOAuthToken(token) .setDeveloperKey(API_KEY) // Remove app ID setting as it's not needed and can cause 404 errors - .setCallback((data: any) => { + .setCallback(async (data: any) => { console.log('Picker callback received:', data); if (data[google.picker.Response.ACTION] === google.picker.Action.PICKED) { try {