Catch error if no account selected in window pop up (Unhandled Promise Rejection: Error: Popup window closed) #35
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Hello!
Just wondering if possible to return error on
picker:error
if theretrieveAccessToken
throw error. For example, if the user did not select any account when pop up window appeared, which caused[Error] Unhandled Promise Rejection: Error: Popup window closed (anonymous function) (@googleworkspace_drive-picker-element.js:91:172)
I assume adding
catch
and dispatch topicker:error
to say no access token?At the moment, using this on Svelte, with a button state to toggle component, but if the popup window closed without account selection, no callback to reset the button state.
The text was updated successfully, but these errors were encountered: