avoid duplicate key error

This commit is contained in:
zadam 2019-06-28 21:50:15 +02:00
parent 2a9f36a027
commit 6e3d8472e1

View File

@ -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') {