diff --git a/frontend/apps/editor3d/app/src/components/reusable/UploadModal3D/UploadFiles3D.tsx b/frontend/apps/editor3d/app/src/components/reusable/UploadModal3D/UploadFiles3D.tsx index a4dd7dc55d..d4d7442619 100644 --- a/frontend/apps/editor3d/app/src/components/reusable/UploadModal3D/UploadFiles3D.tsx +++ b/frontend/apps/editor3d/app/src/components/reusable/UploadModal3D/UploadFiles3D.tsx @@ -61,6 +61,7 @@ export const UploadFiles3D = ({ ); const handleSubmit = () => { + // BUG: Setting the state here might not update the state value until the next render so the old file would be uploaded. if (!assetFile.value) { setAssetFile((curr) => ({ ...curr,