Skip to content

Commit

Permalink
empty file array on upload success
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyShuii committed Nov 8, 2024
1 parent 96d3a4f commit 8e6c3b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const LandingPage: React.FC = () => {
).then((res) => {
console.log(res.data.data.createUpload)
form.resetFields()
fileList.length = 0
setDownloadLink(res.data.data.createUpload)
setOpenModal(true)
message.success("Files uploaded successfully");
Expand Down

0 comments on commit 8e6c3b8

Please sign in to comment.