Don't show error when cancelling doc picker
This commit is contained in:
@@ -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