Don't show error when cancelling doc picker
This commit is contained in:
1 parent
88b0dba3b6
commit
7d0a56d2e2
1 file changed
+2
-1
@@ -75,7 +75,8 @@ async function getFileContentAndImport() {
|
||||
})
|
||||
})
|
||||
} catch (err) {
|
||||
return Alert.alert('There was a problem opening the file picker')
|
||||
// because cancelling also triggers an error, we do nothing here
|
||||
return
|
||||
}
|
||||
|
||||
let fileContent
|
||||
|
||||
Reference in new issue
Block a user