fix: Make Google Drive picker callback async to resolve await usage

This commit is contained in:
Taylor Wilsdon (aider) 2024-12-16 10:30:45 -05:00
parent 77490e3392
commit ae589bf604

View File

@ -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 {