Add missing keys to activity panel on homescreen (https://github.com/woocommerce/woocommerce-admin/pull/6065)

This commit is contained in:
Joshua T Flowers 2021-01-14 17:04:16 -05:00 committed by GitHub
parent 0bde0d5fea
commit d05d615f71
1 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,12 @@ export const ActivityPanel = () => {
<Text key={ title } variant="title.small">
{ title }
</Text>,
count !== null && <Badge count={ count } />,
count !== null && (
<Badge
key={ `${ title }-badge` }
count={ count }
/>
),
] }
key={ id }
className={ className }
@ -82,7 +87,7 @@ export const ActivityPanel = () => {
<PanelRow>{ panel }</PanelRow>
</PanelBody>
) : (
<div className="components-panel__body">
<div className="components-panel__body" key={ id }>
<h2 className="components-panel__body-title">
<Button
className="components-panel__body-toggle"