diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index a4874599d..a624e2e58 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -8,7 +8,7 @@ import { FormListItem } from "./react/FormList"; import NoteContext from "../components/note_context"; export default function Breadcrumb() { - const { noteContext } = useNoteContext(); + const { note, noteContext } = useNoteContext(); const notePath = buildNotePaths(noteContext?.notePathArray); return ( @@ -16,7 +16,8 @@ export default function Breadcrumb() { {notePath.map((item, index) => ( - + {(index < notePath.length - 1 || note?.hasChildren()) && + } ))}