diff --git a/apps/hash-frontend/src/pages/shared/integrations/google/google-file-picker.tsx b/apps/hash-frontend/src/pages/shared/integrations/google/google-file-picker.tsx index 075e9e3765d..2d97f798e81 100644 --- a/apps/hash-frontend/src/pages/shared/integrations/google/google-file-picker.tsx +++ b/apps/hash-frontend/src/pages/shared/integrations/google/google-file-picker.tsx @@ -19,10 +19,7 @@ export const GoogleFilePicker = ({ .addView(google.picker.ViewId.SPREADSHEETS) .setOAuthToken(accessToken) .setCallback((response) => { - if ( - response.action !== google.picker.Action.PICKED || - !response.docs[0] - ) { + if (response.action !== "picked" || !response.docs?.[0]) { onUserChoice(null); return; }