Skip to content

Build your personal knowledge base with Trilium Notes

feat(breadcrumb): hide last note

Elian Doran43ceb1982dbc
diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx
index 0dd3068680..9055a1e539 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 (
<div className="breadcrumb">
@@ -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}/`;
}