From 43ceb1982dbcdd874bf00a10e86093ffde1e9c98 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 8 Dec 2025 15:53:08 +0200 Subject: [PATCH] feat(breadcrumb): hide last note --- apps/client/src/widgets/Breadcrumb.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 0dd306868..9055a1e53 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -6,7 +6,6 @@ import { joinElements } from "./react/react_utils"; export default function Breadcrumb() { const { noteContext } = useNoteContext(); const notePath = buildNotePaths(noteContext?.notePathArray); - console.log("Render with ", notePath); return (
@@ -28,7 +27,7 @@ function buildNotePaths(notePathArray: string[] | undefined) { let prefix = ""; const output: string[] = []; - for (const notePath of notePathArray) { + for (const notePath of notePathArray.slice(0, notePathArray.length - 1)) { output.push(`${prefix}${notePath}`); prefix += `${notePath}/`; }