From 88ab1cf285563a915b23b61439acbe9ce8c7d177 Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Wed, 15 Jul 2020 14:35:44 +1200 Subject: [PATCH] Fix a React warning in test that the key prop wasn't assigned in List (https://github.com/woocommerce/woocommerce-admin/pull/4808) --- .../woocommerce-admin/packages/components/src/list/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce-admin/packages/components/src/list/index.js b/plugins/woocommerce-admin/packages/components/src/list/index.js index ff2fad4e388..dbc6c2a14bd 100644 --- a/plugins/woocommerce-admin/packages/components/src/list/index.js +++ b/plugins/woocommerce-admin/packages/components/src/list/index.js @@ -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 ( -
  • +
  • { before && (