diff --git a/packages/app-desktop/gui/NoteEditor/utils/useFormNote.ts b/packages/app-desktop/gui/NoteEditor/utils/useFormNote.ts index c1fbf863c..97c6fbab7 100644 --- a/packages/app-desktop/gui/NoteEditor/utils/useFormNote.ts +++ b/packages/app-desktop/gui/NoteEditor/utils/useFormNote.ts @@ -140,7 +140,10 @@ export default function useFormNote(dependencies: HookDependencies) { }, [prevSyncStarted, syncStarted, formNote]); useEffect(() => { - if (!noteId) return () => {}; + if (!noteId) { + if (formNote.id) setFormNote(defaultFormNote()); + return () => {}; + } if (formNote.id === noteId) return () => {};