mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: merge old & new note on update
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user