mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 18:34:24 +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 }) {
|
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 (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user