mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +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({
|
||||
...qclone(this._note),
|
||||
id: undefined,
|
||||
content: {
|
||||
type: content.type,
|
||||
data: content.data
|
||||
},
|
||||
content: content
|
||||
? {
|
||||
type: content.type,
|
||||
data: content.data
|
||||
}
|
||||
: undefined,
|
||||
readonly: false,
|
||||
favorite: false,
|
||||
pinned: false,
|
||||
|
||||
Reference in New Issue
Block a user