From 7ee4432f8954c38a6498390f9e418c599c6e1b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindre=20=C3=98strem?= Date: Fri, 13 Dec 2024 12:55:57 +0100 Subject: [PATCH] fix: Delete progress state for transferred directory (TT-1810) (#47) --- src/features/registration/registration-form.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/features/registration/registration-form.tsx b/src/features/registration/registration-form.tsx index 8e30296..32ed4a0 100644 --- a/src/features/registration/registration-form.tsx +++ b/src/features/registration/registration-form.tsx @@ -167,6 +167,10 @@ const RegistrationForm: React.FC = () => { console.error(response); handleError(undefined, response.status); } + setAllUploadProgress(progress => { + delete progress.dir[pushedDir]; + return progress; + }); }) .catch(error => { handleError();