Skip to content

Commit

Permalink
fixing calculation of calculatedMax, breadcrumbs.tsx, line 310
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
  • Loading branch information
BigSamu committed Nov 8, 2023
1 parent 43910a6 commit 9c0bcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/breadcrumbs/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export const OuiBreadcrumbs: FunctionComponent<OuiBreadcrumbsProps> = ({

// Second, if both max and responsiveMax are set, use the smaller of the two. Otherwise, use the one that is set.
const calculatedMax: OuiBreadcrumbsProps['max'] =
max && responsiveMax ? Math.min(max, responsiveMax) : max;
max && responsiveMax ? Math.min(max, responsiveMax) : max || responsiveMax;

const limitedBreadcrumbs = calculatedMax
? limitBreadcrumbs(breadcrumbElements, calculatedMax, breadcrumbs)
Expand Down

0 comments on commit 9c0bcf0

Please sign in to comment.