DashNav: add missing key (#81626)

* DashNav: add missing key

* DashNav: use more specific key
This commit is contained in:
Matias Chomicki 2024-01-31 12:51:15 +01:00 committed by GitHub
parent 564a1d32b7
commit e0054c06fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}
/>
);
}