mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 22:46:05 +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();
|
||||
|
||||
if (effectivePathSegments.includes(hoistedNoteId)) {
|
||||
if (effectivePathSegments.includes(hoistedNoteId) && effectivePathSegments.includes('root')) {
|
||||
return effectivePathSegments;
|
||||
} else {
|
||||
const noteId = getNoteIdFromUrl(notePath);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user