Skip to content

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

set title in editor only once.

ammarahm-edaaf2a3d425df
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 4122c0f4d..8a1490d8f 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -313,6 +313,9 @@ async function setNoteInEditorAfterSaving(oldId, currentId) {
note = note.data;
}
}
+ setTimeout(() => {
+ post('title', note.title);
+ }, 150);
}
}
@@ -400,12 +403,6 @@ export async function saveNote() {
id: id,
});
let n = db.notes.note(id).data.dateEdited;
- if (id) {
- setTimeout(() => {
- let title = db.notes.note(id).data.title;
- post('title', title);
- }, 150);
- }
post('dateEdited', timeConverter(n));
post('saving', 'Saved');
}