Skip to content

Commit

Permalink
Fix FileUpload: uploaded file is cleared in advanced mode (#5227)
Browse files Browse the repository at this point in the history
* Fix FileUpload: uploaded file is cleared in advanced mode

* Refactor fileUpload

---------

Co-authored-by: “Selen <“[email protected]”>
  • Loading branch information
SelenKockar and “Selen authored Nov 2, 2023
1 parent 3683ce9 commit e1e2c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/fileupload/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ export const FileUpload = React.memo(
}
}

setUploadedFilesState((prevUploadedFiles) => [...prevUploadedFiles, ...files]);
clear();
setUploadedFilesState((prevUploadedFiles) => [...prevUploadedFiles, ...files]);
}
};

Expand Down

0 comments on commit e1e2c9d

Please sign in to comment.