From 6fac947d9c76bc16669e5d858f9d1d1890f0e896 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 9 Dec 2025 07:50:21 +0200 Subject: [PATCH] chore(ribbon): address requested changes --- apps/client/src/widgets/Breadcrumb.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 0c08cf160..24d2ba9d4 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -99,8 +99,8 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePa function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNotePath }: { notePath: string, activeNotePath: string, noteContext: NoteContext | undefined }) { const notePathComponents = notePath.split("/"); - const notePathPrefix = notePathComponents.join("/"); // last item was removed already. - const parentNoteId = notePathComponents.length > 1 ? notePathComponents.pop() : "root"; + const notePathPrefix = notePathComponents.join("/"); + const parentNoteId = notePathComponents.at(-1); const childNotes = useChildNotes(parentNoteId); return (