Skip to content

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

fix issue when note gets cleared on app opened

ammarahm-ed3eb567264389
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index d364f09ba..b400dc186 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -306,6 +306,7 @@ function onNoteChange() {
}
export async function clearEditor() {
+ if (!webviewInit) return;
tiny.call(EditorWebView, tiny.reset);
clearTimer();
if (noteEdited && id) {