Explorar o código

fix handler position

zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
a4f8b8abce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client/js/components/ArchiveCreateModal.jsx

+ 1 - 1
src/client/js/components/ArchiveCreateModal.jsx

@@ -66,11 +66,11 @@ const ArchiveCreateModal = (props) => {
         hierarchyValue,
       });
       toastSuccess(t('Submitted the request to create the archive'));
+      closeModalHandler();
     }
     catch (e) {
       toastError(e);
     }
-    closeModalHandler();
   }
 
   return (