mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 10:24:23 +01:00
chore(ribbon): address requested changes
This commit is contained in:
parent
5973e5ca26
commit
6fac947d9c
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user