attempt to fix the duplicate issue

This commit is contained in:
zadam 2019-06-27 21:24:25 +02:00
parent c8e4a5c9e7
commit cf3726289c
2 changed files with 3 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.33.3",
"version": "0.33.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -630,7 +630,8 @@ async function createNote(node, parentNoteId, target, extraOptions = {}) {
extraClasses: await treeBuilder.getExtraClasses(noteEntity),
icon: await treeBuilder.getIcon(noteEntity),
folder: extraOptions.type === 'search',
lazy: true
lazy: true,
key: utils.randomString(12) // this should prevent some "duplicate key" errors
};
if (target === 'after') {