diff --git a/web/app/routes/_layout/_pages/_protected/pages/$pageId/index.tsx b/web/app/routes/_layout/_pages/_protected/pages/$pageId/index.tsx index c0f3f9d4..f082182d 100644 --- a/web/app/routes/_layout/_pages/_protected/pages/$pageId/index.tsx +++ b/web/app/routes/_layout/_pages/_protected/pages/$pageId/index.tsx @@ -139,17 +139,17 @@ const DetailPageForm = ({ const contentEditorRef = React.useRef(null) const [isInitialSync, setIsInitialSync] = React.useState(true) - const { id: pageId, title: pageTitle } = page + // const { id: pageId, title: pageTitle } = page - React.useEffect(() => { - if (!pageId) return + // React.useEffect(() => { + // if (!pageId) return - if (!pageTitle && titleEditorRef.current) { - titleEditorRef.current.commands.focus() - } else if (contentEditorRef.current) { - contentEditorRef.current.commands.focus() - } - }, [pageId, pageTitle]) + // if (!pageTitle && titleEditorRef.current) { + // titleEditorRef.current.commands.focus() + // } else if (contentEditorRef.current) { + // contentEditorRef.current.commands.focus() + // } + // }, [pageId, pageTitle]) React.useEffect(() => { if (!page) return