|
|
@@ -66,7 +66,7 @@ export const PagePathHeader: FC<Props> = (props) => {
|
|
|
setEditedPagePath(currentPagePath);
|
|
|
setRenameInputShown(true);
|
|
|
}
|
|
|
- }, [currentPagePath, editedPagePath, isRenameInputShown, pagePathRenameHandler]);
|
|
|
+ }, [currentPagePath, editedPagePath, isRenameInputShown, onRenameFailure, onRenameFinish, pagePathRenameHandler]);
|
|
|
|
|
|
const isOpened = PageSelectModalData?.isOpened ?? false;
|
|
|
const isViewMode = editorMode === EditorMode.View;
|
|
|
@@ -97,7 +97,7 @@ export const PagePathHeader: FC<Props> = (props) => {
|
|
|
return () => {
|
|
|
document.removeEventListener('click', clickOutSideHandler);
|
|
|
};
|
|
|
- }, []);
|
|
|
+ }, [clickOutSideHandler]);
|
|
|
|
|
|
|
|
|
return (
|