DocumentPicker.isCancel not working #567
-
Hello together, can someone tell me how to use .isCancel the right way. For me it didn't work out like this. Can someone please help?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
hello Manuel, thanks for asking First, let me reformat it:
now with try and catch aligned, it's easier to see that you're combining the try + catch syntax with Promise.then syntax I suggest you rewrite it as
the important part is awaiting the promise. hope this helps, thank you :) |
Beta Was this translation helpful? Give feedback.
-
Thanks @vonovak for your answer and your time. It worked out without awaiting the promise and using .isCancel. Here is what works fine for me:
|
Beta Was this translation helpful? Give feedback.
Thanks @vonovak for your answer and your time. It worked out without awaiting the promise and using .isCancel. Here is what works fine for me: