added key to FIELDS_TO_SORT_BY.map to resolve warning
This commit is contained in:
@@ -29,8 +29,8 @@ export default ({ sortBy, onSortByItemClick }) => (
|
|||||||
</Dropdown.Toggle>
|
</Dropdown.Toggle>
|
||||||
|
|
||||||
<Dropdown.Menu>
|
<Dropdown.Menu>
|
||||||
{FIELDS_TO_SORT_BY.map((field) => (
|
{FIELDS_TO_SORT_BY.map((field, index) => (
|
||||||
<Dropdown.Item onClick={() => onSortByItemClick(field)}>
|
<Dropdown.Item key={index} onClick={() => onSortByItemClick(field)}>
|
||||||
{field.label}
|
{field.label}
|
||||||
</Dropdown.Item>
|
</Dropdown.Item>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user