Fix a React warning in test that the key prop wasn't assigned in List (https://github.com/woocommerce/woocommerce-admin/pull/4808)
This commit is contained in:
parent
480362ca29
commit
88ab1cf285
|
@ -49,7 +49,6 @@ class List extends Component {
|
|||
className: itemClasses,
|
||||
content,
|
||||
href,
|
||||
key,
|
||||
listItemTag,
|
||||
onClick,
|
||||
target,
|
||||
|
@ -81,11 +80,11 @@ class List extends Component {
|
|||
|
||||
return (
|
||||
<CSSTransition
|
||||
key={ key }
|
||||
key={ i }
|
||||
timeout={ 500 }
|
||||
classNames="woocommerce-list__item"
|
||||
>
|
||||
<li className={ itemClassName } key={ i }>
|
||||
<li className={ itemClassName }>
|
||||
<InnerTag { ...innerTagProps }>
|
||||
{ before && (
|
||||
<div className="woocommerce-list__item-before">
|
||||
|
|
Loading…
Reference in New Issue