core: duplicate note without content

This commit is contained in:
ammarahm-ed
2023-04-25 11:12:34 +05:00
committed by Abdullah Atta
parent a28beb62c6
commit 4875cfa108

View File

@@ -138,10 +138,12 @@ export default class Note {
return await this._db.notes.add({ return await this._db.notes.add({
...qclone(this._note), ...qclone(this._note),
id: undefined, id: undefined,
content: { content: content
type: content.type, ? {
data: content.data type: content.type,
}, data: content.data
}
: undefined,
readonly: false, readonly: false,
favorite: false, favorite: false,
pinned: false, pinned: false,