2
0
kaori 4 жил өмнө
parent
commit
2cf791d2b3

+ 1 - 4
packages/app/src/components/PageRenameModal.jsx

@@ -79,7 +79,7 @@ const PageRenameModal = (props) => {
       updateSubordinatedList();
       setPageNameInput(path);
     }
-  }, [isOpened, updateSubordinatedList]);
+  }, [isOpened, path, updateSubordinatedList]);
 
 
   const checkExistPaths = async(newParentPath) => {
@@ -100,10 +100,7 @@ const PageRenameModal = (props) => {
   );
 
   useEffect(() => {
-    console.log('path_useEffect_pageNameInput', pageNameInput);
-    console.log('path_useEffect_path', path);
     if (pageId != null && pageNameInput !== path) {
-      console.log('useEffect実行されてる?');
       checkExistPathsDebounce(pageNameInput, subordinatedPages);
     }
   }, [pageNameInput, subordinatedPages, pageId, path, checkExistPathsDebounce]);