mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
avoid duplicate key error
This commit is contained in:
parent
2a9f36a027
commit
6e3d8472e1
@ -83,7 +83,8 @@ async function prepareNode(branch) {
|
||||
icon: await getIcon(note),
|
||||
refKey: note.noteId,
|
||||
expanded: branch.isExpanded || hoistedNoteId === note.noteId,
|
||||
lazy: true
|
||||
lazy: true,
|
||||
key: utils.randomString(12) // this should prevent some "duplicate key" errors
|
||||
};
|
||||
|
||||
if (note.hasChildren() || note.type === 'search') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user