From 8e6c3b827a873e36d495ea6486e693836b2cf421 Mon Sep 17 00:00:00 2001 From: LuckyShuii Date: Fri, 8 Nov 2024 10:45:35 +0100 Subject: [PATCH] empty file array on upload success --- frontend/src/pages/LandingPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/LandingPage.tsx b/frontend/src/pages/LandingPage.tsx index fd5d884..b81206b 100644 --- a/frontend/src/pages/LandingPage.tsx +++ b/frontend/src/pages/LandingPage.tsx @@ -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");