From 9f800df5ad567d466a0a2b8e2f3510821397975a Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Tue, 18 Nov 2025 19:54:50 +0800 Subject: [PATCH] fix(tree): fix failure to auto-activate hoisted note --- apps/client/src/services/tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/services/tree.ts b/apps/client/src/services/tree.ts index ec5bc0191..cfa210600 100644 --- a/apps/client/src/services/tree.ts +++ b/apps/client/src/services/tree.ts @@ -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);