mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 14:34:30 +01:00
fix(tree): fix failure to auto-activate hoisted note
This commit is contained in:
parent
64a756cc04
commit
9f800df5ad
@ -89,7 +89,7 @@ async function resolveNotePathToSegments(notePath: string, hoistedNoteId = "root
|
|||||||
|
|
||||||
effectivePathSegments.reverse();
|
effectivePathSegments.reverse();
|
||||||
|
|
||||||
if (effectivePathSegments.includes(hoistedNoteId)) {
|
if (effectivePathSegments.includes(hoistedNoteId) && effectivePathSegments.includes('root')) {
|
||||||
return effectivePathSegments;
|
return effectivePathSegments;
|
||||||
} else {
|
} else {
|
||||||
const noteId = getNoteIdFromUrl(notePath);
|
const noteId = getNoteIdFromUrl(notePath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user