Skip to content

Commit

Permalink
Check the upload status existence
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Nov 10, 2024
1 parent 05b69ce commit 9292485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/uploader/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export function useUploader({
...initialFileIds,
...[...uploadIds]
.filter((id) => statuses[id]?.success)
.map((id) => allUploads[id].attachment.id),
.map((id) => allUploads[id]?.attachment.id)
.filter(Boolean),
];

// Detect successful uploads
Expand Down

0 comments on commit 9292485

Please sign in to comment.