Skip to content

Commit 6fb14d0

Browse files
committed
refact: add missing keys to mapped items
1 parent a5d8a1a commit 6fb14d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/DocsSidebar/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const DocsSidebar = (): JSX.Element => {
131131
{filteredGroups.map((group, groupIndex) => {
132132
return (
133133
<MethodGroup
134+
key={group.fieldValue}
134135
group={group}
135136
previousGroupLength={previousGroupLength(groupIndex)}
136137
groupIndex={groupIndex}

src/components/UL/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const UL = ({ items = [], ...restProps }: ULProps): JSX.Element | null => {
1414

1515
return (
1616
<SC.ULWrapper {...restProps}>
17-
{items.map(item => {
17+
{items.map((item, index) => {
1818
return (
19-
<SC.LI>
19+
<SC.LI key={index}>
2020
<SC.StyledChevronRight />
2121
{item}
2222
</SC.LI>

0 commit comments

Comments
 (0)