From b3f60ce5e57a02689c65a258aec520dbe93f97f3 Mon Sep 17 00:00:00 2001 From: "hash-worker[bot]" <180894564+hash-worker[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 00:53:18 +0000 Subject: [PATCH 1/2] Update npm package `@types/google.picker` to v0.0.47 --- apps/hash-frontend/package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/hash-frontend/package.json b/apps/hash-frontend/package.json index 572567261c9..ad92505a633 100644 --- a/apps/hash-frontend/package.json +++ b/apps/hash-frontend/package.json @@ -138,7 +138,7 @@ "@types/emoji-mart": "patch:@types/emoji-mart@npm%3A3.0.9#~/.yarn/patches/@types-emoji-mart-npm-3.0.9-ec5052fc0d.patch", "@types/gapi": "0.0.47", "@types/google.accounts": "0.0.15", - "@types/google.picker": "0.0.43", + "@types/google.picker": "0.0.47", "@types/iframe-resizer": "3.5.13", "@types/jsonpath": "0.2.4", "@types/lodash": "4.17.13", diff --git a/yarn.lock b/yarn.lock index 6327b0944e3..a264f4d7240 100644 --- a/yarn.lock +++ b/yarn.lock @@ -540,7 +540,7 @@ __metadata: "@types/emoji-mart": "patch:@types/emoji-mart@npm%3A3.0.9#~/.yarn/patches/@types-emoji-mart-npm-3.0.9-ec5052fc0d.patch" "@types/gapi": "npm:0.0.47" "@types/google.accounts": "npm:0.0.15" - "@types/google.picker": "npm:0.0.43" + "@types/google.picker": "npm:0.0.47" "@types/iframe-resizer": "npm:3.5.13" "@types/jsonpath": "npm:0.2.4" "@types/lodash": "npm:4.17.13" @@ -17623,10 +17623,10 @@ __metadata: languageName: node linkType: hard -"@types/google.picker@npm:0.0.43": - version: 0.0.43 - resolution: "@types/google.picker@npm:0.0.43" - checksum: 10c0/929671015dfffb2c73e8a52612505cee9273a49c557241ef3765d9927ea2327ef15047e64269ec2cc7088bc193f009d3e3e75e2ad6a7497603a6f1f9d8672c8e +"@types/google.picker@npm:0.0.47": + version: 0.0.47 + resolution: "@types/google.picker@npm:0.0.47" + checksum: 10c0/c7bbedd7a54a9cc8dd29b7a522d155260e17a3ae4a4617c32b34df65ba3fb0b3b5066e8f3f3e752fbd6670bc5b348af6f8eed3eaeda80411002c844559c22581 languageName: node linkType: hard From e530acf9eebbf92999152b7f02b47ff5c7397bf9 Mon Sep 17 00:00:00 2001 From: Ciaran Morinan Date: Mon, 16 Dec 2024 13:34:06 +0000 Subject: [PATCH 2/2] type fix --- .../pages/shared/integrations/google/google-file-picker.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; }