We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f94381 commit 0589d8fCopy full SHA for 0589d8f
1 file changed
src/components/AttachmentPicker/index.native.tsx
@@ -240,9 +240,9 @@ function AttachmentPicker({
240
});
241
242
return pickedFiles.map((file) => {
243
- const localCopy = localCopies.find((copy) => copy.status === 'success' && copy.sourceUri === file.uri);
+ const localCopy = localCopies.find((copy) => copy.sourceUri === file.uri);
244
245
- if (!localCopy) {
+ if (!localCopy || localCopy.status !== 'success') {
246
throw new Error("Couldn't create local file copy");
247
}
248
0 commit comments