Fix key prop warning in FilterPicker (https://github.com/woocommerce/woocommerce-admin/pull/221)
This commit is contained in:
parent
b64d729f0a
commit
6abcbbdc87
|
@ -158,8 +158,9 @@ class FilterPicker extends Component {
|
|||
) }
|
||||
renderContent={ ( { onClose } ) => (
|
||||
<ul className="woocommerce-filter-picker__content-list" ref={ this.listRef }>
|
||||
{ visibleFilters.map( filter => (
|
||||
{ visibleFilters.map( ( filter, i ) => (
|
||||
<li
|
||||
key={ i }
|
||||
className={ classnames( 'woocommerce-filter-picker__content-list-item', {
|
||||
'is-selected': selectedFilter.value === filter.value,
|
||||
} ) }
|
||||
|
|
Loading…
Reference in New Issue