We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 796a708 + bf5e0a7 commit 63925beCopy full SHA for 63925be
1 file changed
package/src/hooks/usePendingAttachmentUpload.ts
@@ -31,7 +31,7 @@ export function usePendingAttachmentUpload(localId: string | undefined): Pending
31
if (!localId) {
32
return idle;
33
}
34
- const record = state.uploads.find((u) => u.id === localId);
+ const record = state.uploads[localId];
35
if (!record) {
36
37
0 commit comments