From 223ba4643ff73e871c91c259e6dd5d80e466d92f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 8 Dec 2025 21:57:51 +0200 Subject: [PATCH] fix(breadcrumb): breadcrumb shown if there are no children --- apps/client/src/widgets/Breadcrumb.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()) && + } ))}