Don't show error when cancelling doc picker

This commit is contained in:
Julia Friesel
2018-08-07 18:38:21 +02:00
parent 88b0dba3b6
commit 7d0a56d2e2
+2 -1
View File
@@ -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