diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 18ec9e845..1b3ae4888 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -73,7 +73,7 @@ function buildNotePaths(notePathArray: string[] | undefined) { let prefix = ""; const output: string[] = []; - for (const notePath of notePathArray.slice(0, notePathArray.length - 1)) { + for (const notePath of notePathArray) { output.push(`${prefix}${notePath}`); prefix += `${notePath}/`; }