fix new note note added to a tag on creating

This commit is contained in:
ammarahm-ed
2021-09-14 12:27:55 +05:00
parent fdfaf592ff
commit 0de613c1d2

View File

@@ -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;
}