Explorar el Código

fix handler position

zahmis hace 5 años
padre
commit
a4f8b8abce
Se han modificado 1 ficheros con 1 adiciones y 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 (