DashNav: add missing key (#81626)

* DashNav: add missing key

* DashNav: use more specific key
pull/81630/head
Matias Chomicki 1 year ago committed by GitHub
parent 564a1d32b7
commit e0054c06fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      public/app/features/dashboard/components/DashNav/DashNav.tsx

@ -188,7 +188,13 @@ export const DashNav = React.memo<Props>((props) => {
if (dashboard.meta.publicDashboardEnabled) {
// TODO: This will be replaced with the new badge component. Color is required but gets override by css
buttons.push(
<Badge color="blue" text="Public" className={publicBadgeStyle} data-testid={selectors.publicDashboardTag} />
<Badge
color="blue"
text="Public"
key="public-dashboard-button-badge"
className={publicBadgeStyle}
data-testid={selectors.publicDashboardTag}
/>
);
}

Loading…
Cancel
Save