Skip to content

Build your personal knowledge base with Trilium Notes

chore(ribbon): address requested changes

Elian Doran6fac947d9c76
diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx
index 0c08cf160b..24d2ba9d4f 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 (