Sfoglia il codice sorgente

modifed the null check

白石誠 5 anni fa
parent
commit
80678a21e6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/client/js/components/Page/NotFoundAlert.jsx

+ 1 - 1
src/client/js/components/Page/NotFoundAlert.jsx

@@ -5,7 +5,7 @@ const NotFoundAlert = (props) => {
 
   function clickHandler(viewType) {
     if (props.onPageCreateClicked === null) {
-      return null;
+      return;
     }
     props.onPageCreateClicked(viewType);
   }