diff --git a/app/components/DocumentBreadcrumb.tsx b/app/components/DocumentBreadcrumb.tsx index 27b62606fd..1ebf4660b9 100644 --- a/app/components/DocumentBreadcrumb.tsx +++ b/app/components/DocumentBreadcrumb.tsx @@ -148,7 +148,7 @@ function DocumentBreadcrumb( } const slicedPath = reverse - ? path.slice(depth && -depth) + ? path.slice(depth ? -depth : undefined) : path.slice(0, depth); const showCollection =