diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js index 9f3ba6b9f..a15d8c5f1 100644 --- a/apps/mobile/src/views/Editor/Functions.js +++ b/apps/mobile/src/views/Editor/Functions.js @@ -503,7 +503,7 @@ async function addToCollection(id) { break; } case 'tag': { - await db.notes.note(note.id).tag(editing.actionAfterFirstSave.id); + await db.notes.note(id).tag(editing.actionAfterFirstSave.id); editing.actionAfterFirstSave = { type: null }; @@ -589,7 +589,9 @@ export async function saveNote(preventUpdate) { tiny.call(EditorWebView, tiny.updateDateEdited(timeConverter(n))); tiny.call(EditorWebView, tiny.updateSavingState('Saved')); } - } catch (e) {} + } catch (e) { + console.log('note save error', e); + } isSaving = false; }