diff --git a/.changeset/modern-melons-doubt.md b/.changeset/modern-melons-doubt.md new file mode 100644 index 00000000000..297b133b20f --- /dev/null +++ b/.changeset/modern-melons-doubt.md @@ -0,0 +1,5 @@ +--- +"@aws-amplify/ui-react": patch +--- + +fix(ui-react): use guaranteed value for BreadCrumbs key diff --git a/docs/src/pages/[platform]/components/breadcrumbs/examples/BreadcrumbsStyleExample.tsx b/docs/src/pages/[platform]/components/breadcrumbs/examples/BreadcrumbsStyleExample.tsx index 70a66edc07e..23edbe410c1 100644 --- a/docs/src/pages/[platform]/components/breadcrumbs/examples/BreadcrumbsStyleExample.tsx +++ b/docs/src/pages/[platform]/components/breadcrumbs/examples/BreadcrumbsStyleExample.tsx @@ -22,8 +22,8 @@ export default function BreadcrumbsStyleExample() { borderRadius="medium" padding="medium" > - {breadcrumbs.map(({ href, text, isCurrent }) => ( - + {breadcrumbs.map(({ href, text, isCurrent }, idx) => ( + = ( {items?.map(({ href, label }, idx) => { const isCurrent = items.length - 1 === idx; return ( - + {label}