Skip to content

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

mobile: no need to check editor ready state

Ammar Ahmede5512974d5c1
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
index 2a3b1e728..586745672 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
@@ -797,7 +797,7 @@ export const useEditor = (
);
await commands.setSettings();
- if (!state.current.ready && (await onReady())) {
+ if (!state.current.ready) {
state.current.ready = true;
}
@@ -810,7 +810,6 @@ export const useEditor = (
}
}
}, [
- onReady,
postMessage,
theme,
commands,