hoisting fixes

This commit is contained in:
zadam
2020-11-24 22:32:22 +01:00
parent 14f5b46ece
commit 35d5036aaa
3 changed files with 5 additions and 7 deletions

View File

@@ -37,8 +37,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
path.push('root');
}
const hoistedNoteId = hoistedNoteService.getHoistedNoteId();
const effectivePath = [];
let childNoteId = null;
let i = 0;
@@ -91,10 +89,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
effectivePath.push(parentNoteId);
childNoteId = parentNoteId;
if (parentNoteId === hoistedNoteId) {
break;
}
}
return effectivePath.reverse();