Selaa lähdekoodia

fix PageShareManagement

zahmis 6 vuotta sitten
vanhempi
sitoutus
987f367899
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      src/client/js/components/Page/PageShareManagement.jsx

+ 3 - 2
src/client/js/components/Page/PageShareManagement.jsx

@@ -31,11 +31,12 @@ const PageShareManagement = (props) => {
 
   function closeArchiveCreateModalHandler() {
 
-    if (setIsArchiveCreateModalShown(null)) {
+    setIsArchiveCreateModalShown(false);
+
+    if (setIsArchiveCreateModalShown == null) {
       return null;
     }
 
-    setIsArchiveCreateModalShown(false);
   }