mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: duplicate note without content
This commit is contained in:
committed by
Abdullah Atta
parent
a28beb62c6
commit
4875cfa108
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user