Skip to content

Commit

Permalink
fix: removed condition preventing breadcrumb rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
bashleigh committed Mar 6, 2024
1 parent 48c83db commit 7ee1337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/breadcrumb/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const BreadCrumb: FC<BreadCrumbProps> = ({ items, defaultActiveIndex = 0,
return (
<ElBreadCrumbContainer {...rest} aria-label="Breadcrumb">
{items.map(({ onClick, text }, index) => {
if (index > active) return null
// Why is this line here and why is it causing a problem now?
// if (index > active) return null

return (
<FlexContainer isFlexAlignCenter key={index}>
Expand Down

0 comments on commit 7ee1337

Please sign in to comment.