Skip to content

Commit bf5e0a7

Browse files
committed
refactor: uploadManager state change
1 parent 373dac3 commit bf5e0a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/src/hooks/usePendingAttachmentUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function usePendingAttachmentUpload(localId: string | undefined): Pending
3131
if (!localId) {
3232
return idle;
3333
}
34-
const record = state.uploads.find((u) => u.id === localId);
34+
const record = state.uploads[localId];
3535
if (!record) {
3636
return idle;
3737
}

0 commit comments

Comments
 (0)