diff --git a/apps/client/src/features/editor/title-editor.tsx b/apps/client/src/features/editor/title-editor.tsx index c3610394..33d1984e 100644 --- a/apps/client/src/features/editor/title-editor.tsx +++ b/apps/client/src/features/editor/title-editor.tsx @@ -157,7 +157,9 @@ export function TitleEditor({ useEffect(() => { setTimeout(() => { - titleEditor?.commands.focus("end"); + // guard against Cannot access view['hasFocus'] error + if (!titleEditor?.isInitialized) return; + titleEditor?.commands?.focus("end"); }, 500); }, [titleEditor]);