kaori 4 лет назад
Родитель
Сommit
9c375481b9
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/app/src/components/PageDuplicateModal.jsx

+ 2 - 1
packages/app/src/components/PageDuplicateModal.jsx

@@ -101,8 +101,9 @@ const PageDuplicateModal = (props) => {
   useEffect(() => {
     if (isOpened) {
       getSubordinatedList();
+      setPageNameInput(path);
     }
-  }, [isOpened, getSubordinatedList]);
+  }, [isOpened, getSubordinatedList, path]);
 
   function changeIsDuplicateRecursivelyWithoutExistPathHandler() {
     setIsDuplicateRecursivelyWithoutExistPath(!isDuplicateRecursivelyWithoutExistPath);