Apply suggested fix to app/components/DocumentBreadcrumb.tsx from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Tom Moor
2026-04-04 11:00:48 -04:00
committed by GitHub
parent b75c3f9d3a
commit f2e4a22d00
+1 -1
View File
@@ -148,7 +148,7 @@ function DocumentBreadcrumb(
}
const slicedPath = reverse
? path.slice(depth && -depth)
? path.slice(depth ? -depth : undefined)
: path.slice(0, depth);
const showCollection =