mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-04 11:59:54 -06:00
fix unhoisting note
This commit is contained in:
@@ -38,7 +38,9 @@ async function getNotePath(node) {
|
||||
node = node.getParent();
|
||||
}
|
||||
|
||||
path.push(node.data.noteId); // root or hoisted noteId
|
||||
if (node) { // null node can happen directly after unhoisting when tree is still hoisted but option has been changed already
|
||||
path.push(node.data.noteId); // root or hoisted noteId
|
||||
}
|
||||
|
||||
return path.reverse().join("/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user