Browse Source

fix handler position

zahmis 5 years ago
parent
commit
a4f8b8abce
1 changed files with 1 additions and 1 deletions
  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,
         hierarchyValue,
       });
       });
       toastSuccess(t('Submitted the request to create the archive'));
       toastSuccess(t('Submitted the request to create the archive'));
+      closeModalHandler();
     }
     }
     catch (e) {
     catch (e) {
       toastError(e);
       toastError(e);
     }
     }
-    closeModalHandler();
   }
   }
 
 
   return (
   return (