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:
Fernando 2020-08-05 16:01:02 -03:00 committed by GitHub
parent 3873c415cb
commit 6c264a08a0
1 changed files with 2 additions and 2 deletions

View File

@ -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"
> >