From 4887b3dcdd36da9a7637588aaeaa32c2e634953a Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Thu, 26 Aug 2021 23:34:56 +0800 Subject: [PATCH] no log: Remove pending subtitles after starting the upload process --- frontend/src/components/modals/SubtitleUploadModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/modals/SubtitleUploadModal.tsx b/frontend/src/components/modals/SubtitleUploadModal.tsx index ac6edd14b..eba982ed5 100644 --- a/frontend/src/components/modals/SubtitleUploadModal.tsx +++ b/frontend/src/components/modals/SubtitleUploadModal.tsx @@ -279,6 +279,7 @@ export default function SubtitleUploadModal( disabled={!canUpload || !showTable} onClick={() => { upload(pending); + setFiles([]); closeModal(); }} >