Skip to content

Commit

Permalink
fixed child needs key react error
Browse files Browse the repository at this point in the history
  • Loading branch information
rosannamilner committed Aug 14, 2024
1 parent 2023bb4 commit 4610d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export function CategoriesList({
let index = 0;
for (const category in categories) {
if (index > 0) {
output.push(<Divider />);
output.push(<Divider key={index} />);
}
let backgroundRgb = interpRgb(
categories[category][0].score,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export function CategoriesListToggle({
}

if (index > 0) {
output.push(<Divider />);
output.push(<Divider key={index} />);
}

let backgroundRgb = interpRgb(
Expand Down

0 comments on commit 4610d1f

Please sign in to comment.