Skip to content

Commit

Permalink
Merge pull request #328 from Studio-Yandex-Practicum/bug_327_breadcrumbs
Browse files Browse the repository at this point in the history
Key был задан не у корневого элемента в списке и возникала ошибка.
  • Loading branch information
kirill-k88 authored Apr 22, 2024
2 parents e486471 + 04cc6aa commit 1932d77
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 1932d77

Please sign in to comment.