|
@@ -100,6 +100,10 @@ const PageRenameModal = (props) => {
|
|
|
debounce(1000, checkExistPaths), [],
|
|
debounce(1000, checkExistPaths), [],
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ checkExistPathsDebounce(pageNameInput, subordinatedPages);
|
|
|
|
|
+ }, [pageNameInput, subordinatedPages, checkExistPathsDebounce]);
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* change pageNameInput
|
|
* change pageNameInput
|
|
|
* @param {string} value
|
|
* @param {string} value
|
|
@@ -107,7 +111,6 @@ const PageRenameModal = (props) => {
|
|
|
function inputChangeHandler(value) {
|
|
function inputChangeHandler(value) {
|
|
|
setErrs(null);
|
|
setErrs(null);
|
|
|
setPageNameInput(value);
|
|
setPageNameInput(value);
|
|
|
- checkExistPathsDebounce(value, subordinatedPages);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function rename() {
|
|
async function rename() {
|