chore(ribbon): address requested changes

This commit is contained in:
Elian Doran 2025-12-09 07:50:21 +02:00
parent 5973e5ca26
commit 6fac947d9c
No known key found for this signature in database

View File

@ -99,8 +99,8 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePa
function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNotePath }: { notePath: string, activeNotePath: string, noteContext: NoteContext | undefined }) { function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNotePath }: { notePath: string, activeNotePath: string, noteContext: NoteContext | undefined }) {
const notePathComponents = notePath.split("/"); const notePathComponents = notePath.split("/");
const notePathPrefix = notePathComponents.join("/"); // last item was removed already. const notePathPrefix = notePathComponents.join("/");
const parentNoteId = notePathComponents.length > 1 ? notePathComponents.pop() : "root"; const parentNoteId = notePathComponents.at(-1);
const childNotes = useChildNotes(parentNoteId); const childNotes = useChildNotes(parentNoteId);
return ( return (