From 33f7eb9ae22b4aa8b1e3e33ec507190ae44c8ccf Mon Sep 17 00:00:00 2001 From: FromTheLOLAshes <153381408+FromTheLOLAshes@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:50:39 -0400 Subject: [PATCH] fix bug where user can only upload one object (#527) Co-authored-by: Christopher Oliphant --- app/components/reusable/FileWrapper/FileWrapper.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/reusable/FileWrapper/FileWrapper.tsx b/app/components/reusable/FileWrapper/FileWrapper.tsx index 240d8e83ec..0e8764fe4f 100644 --- a/app/components/reusable/FileWrapper/FileWrapper.tsx +++ b/app/components/reusable/FileWrapper/FileWrapper.tsx @@ -57,6 +57,7 @@ export function FileWrapper({ setDragging(false); onDragDrop(event); if (event.dataTransfer.files && event.dataTransfer.files[0]) { + setResetModal(true); setFile(event.dataTransfer.files[0]); setModalOpen(true); }