mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-29 08:49:16 -05:00
Merge branch 'stable'
This commit is contained in:
@@ -102,7 +102,7 @@ async function deleteNodes(nodes) {
|
||||
next = nodes[0].getPrevSibling();
|
||||
}
|
||||
|
||||
if (!next && !hoistedNoteService.isTopLevelNode(nodes[0])) {
|
||||
if (!next && !await hoistedNoteService.isTopLevelNode(nodes[0])) {
|
||||
next = nodes[0].getParent();
|
||||
}
|
||||
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user