fix unhoisting note

This commit is contained in:
zadam
2019-06-13 22:45:55 +02:00
parent ce2404b18a
commit f1967fd466
3 changed files with 14 additions and 12 deletions

View File

@@ -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("/");
}