Added key to generic items in list without one (https://github.com/woocommerce/woocommerce-admin/pull/4936)
This commit adds a key to generic items in list that don't have one Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
parent
3873c415cb
commit
6c264a08a0
|
@ -42,7 +42,7 @@ class List extends Component {
|
||||||
className={ listClassName }
|
className={ listClassName }
|
||||||
role="menu"
|
role="menu"
|
||||||
>
|
>
|
||||||
{ items.map( ( item ) => {
|
{ items.map( ( item, index ) => {
|
||||||
const {
|
const {
|
||||||
after,
|
after,
|
||||||
before,
|
before,
|
||||||
|
@ -81,7 +81,7 @@ class List extends Component {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
key={ key }
|
key={ key || index }
|
||||||
timeout={ 500 }
|
timeout={ 500 }
|
||||||
classNames="woocommerce-list__item"
|
classNames="woocommerce-list__item"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue