hoisting bugfixes

This commit is contained in:
zadam
2020-10-19 22:10:25 +02:00
parent 991b335c3e
commit c2b64bad80
3 changed files with 16 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
if (!parents.length) {
if (logErrors) {
ws.logError(`No parents found for ${childNoteId} (${child.title})`);
ws.logError(`No parents found for ${childNoteId} (${child.title}) for path ${notePath}`);
}
return;
@@ -83,8 +83,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
for (const noteId of pathToRoot) {
effectivePath.push(noteId);
}
effectivePath.push('root');
}
break;