ソースを参照

remove duplicate null check

kaori 4 年 前
コミット
6427f82d71
1 ファイル変更0 行追加3 行削除
  1. 0 3
      packages/app/src/components/PageRenameModal.jsx

+ 0 - 3
packages/app/src/components/PageRenameModal.jsx

@@ -100,9 +100,6 @@ const PageRenameModal = (props) => {
   }, [checkExistPaths]);
 
   useEffect(() => {
-    if (path == null) {
-      return;
-    }
     if (pageId != null && path != null && pageNameInput !== path) {
       checkExistPathsDebounce(pageNameInput, subordinatedPages);
     }