Skip to content

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

fix issue in editor, new colors created

ammarahm-ed5846928d7633
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 79ac2e40f..87fc2a33d 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -371,10 +371,10 @@ export async function saveNote() {
eSendEvent(refreshNotesPage);
}
- await setNoteInEditorAfterSaving(id, noteId);
- if (id) {
- await addToCollection(id);
+ if (!id) {
+ await addToCollection(noteId);
}
+ await setNoteInEditorAfterSaving(id, noteId);
saveCounter++;
} else {
noteData.contentId = note.contentId;