Skip to content

Commit

Permalink
Key был задан не у корневого элемента в списке и возникала ошибка.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-k88 committed Apr 19, 2024
1 parent b77d99f commit 04cc6aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/ui/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const Breadcrumbs: FC<TBreadcrumbsProps> = ({ links }) => {
{links.map((link, index) => {
return (
(index !== links.length - 1 && (
<Subheading>
<Link key={link.href} to={link.href} className={styles.link}>
<Subheading key={link.href}>
<Link to={link.href} className={styles.link}>
{link.heading}
</Link>
<span>&nbsp;&#47;&nbsp;</span>
Expand Down

0 comments on commit 04cc6aa

Please sign in to comment.