Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

clear title properly

ammarahm-eddfa3828aaf74
diff --git a/apps/mobile/src/screens/editor/tiptap/useEditor.ts b/apps/mobile/src/screens/editor/tiptap/useEditor.ts
index befa85380..d2ac1bd1c 100644
--- a/apps/mobile/src/screens/editor/tiptap/useEditor.ts
+++ b/apps/mobile/src/screens/editor/tiptap/useEditor.ts
@@ -95,7 +95,6 @@ export const useEditor = (
const onReady = useCallback(async () => {
if (!(await isEditorLoaded(editorRef, sessionIdRef.current))) {
- console.log('reload editor');
overlay(true);
setLoading(true);
}
@@ -119,6 +118,7 @@ export const useEditor = (
sessionHistoryId.current = undefined;
saveCount.current = 0;
useEditorStore.getState().setReadonly(false);
+ postMessage(EditorEvents.title, '');
await commands.clearContent();
console.log('reset state: ', resetState);
if (resetState) {