bastislack / highline-freestyle

Webapp for Highline Freestyle
GNU General Public License v3.0
10 stars 9 forks source link

Fix SearchBar.js key error #260

Closed JulianDietzel closed 1 year ago

JulianDietzel commented 1 year ago

Since the refactor / redesign of the SearchBar component, the following error got raised in the console when opening the Trick List:

Warning: Each child in a list should have a unique "key" prop.

Check the render method of `SearchBar`.
[...]

The issue was simply that the Dropdown items of the sorting options did not have any keys assigned to them. The issue was fixed by adding keys (the scheme names) to them.