mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
hoisting fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user