Skip to content

Commit 9f800df

Browse files
committed
fix(tree): fix failure to auto-activate hoisted note
1 parent 64a756c commit 9f800df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/services/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function resolveNotePathToSegments(notePath: string, hoistedNoteId = "root
8989

9090
effectivePathSegments.reverse();
9191

92-
if (effectivePathSegments.includes(hoistedNoteId)) {
92+
if (effectivePathSegments.includes(hoistedNoteId) && effectivePathSegments.includes('root')) {
9393
return effectivePathSegments;
9494
} else {
9595
const noteId = getNoteIdFromUrl(notePath);

0 commit comments

Comments
 (0)