Skip to content

Commit

Permalink
Update npm package @types/google.picker to v0.0.47 (#5538)
Browse files Browse the repository at this point in the history
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Co-authored-by: Ciaran Morinan <[email protected]>
  • Loading branch information
hash-worker[bot] and CiaranMn committed Jan 13, 2025
1 parent 380f622 commit b95dfd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/hash-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,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"
Expand Down Expand Up @@ -17621,10 +17621,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

Expand Down

0 comments on commit b95dfd6

Please sign in to comment.