Skip to content
Snippets Groups Projects
Commit e064d0e7 authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Merge branch 'add-key-for-breadcrumbs' into 'main'

fix: prevent warning about missing key in breadcrumb

See merge request !35
parents 9b99700e a05b04e9
No related branches found
No related tags found
1 merge request!35fix: prevent warning about missing key in breadcrumb
Pipeline #74836 passed
...@@ -38,7 +38,11 @@ const Breadcrumb = ({ items }: BreadcrumbProps) => { ...@@ -38,7 +38,11 @@ const Breadcrumb = ({ items }: BreadcrumbProps) => {
}} }}
> >
{items.map((item, idx) => ( {items.map((item, idx) => (
<BreadcrumbItem href={item.href} isCurrent={idx === items.length - 1}> <BreadcrumbItem
key={idx}
href={item.href}
isCurrent={idx === items.length - 1}
>
<Typography text={item.name} variant="note" customColor={true} /> <Typography text={item.name} variant="note" customColor={true} />
</BreadcrumbItem> </BreadcrumbItem>
))} ))}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment