fix: Extra entry on end of breadcrumb

This commit is contained in:
Tom Moor
2023-12-18 22:47:03 -05:00
parent d09a4f7d20
commit d8c6257429

View File

@@ -127,7 +127,7 @@ const DocumentBreadcrumb: React.FC<Props> = ({
return (
<>
{collection?.name}
{path.map((node: NavigationNode) => (
{path.slice(0, -1).map((node: NavigationNode) => (
<React.Fragment key={node.id}>
<SmallSlash />
{node.title}