fix: merge old & new note on update

This commit is contained in:
thecodrr
2020-01-03 15:19:01 +05:00
parent 1730926a7e
commit 3a9746ab54

View File

@@ -114,8 +114,8 @@ class Database {
(!note.content || !note.content.text || !note.content.delta))
)
return;
let timestamp = note.dateCreated || Date.now();
note = { ...this.notes[timestamp], ...note };
//add or update a note into the database
let title =
note.title ||