DashNav: Fixes missing key warning caused by public dashboard tag (#55336)

This commit is contained in:
Torkel Ödegaard 2022-09-19 17:01:14 +02:00 committed by GitHub
parent db17a88193
commit d5e4b08a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,9 @@ export const DashNav = React.memo<Props>((props) => {
}
if (dashboard.meta.publicDashboardEnabled) {
buttons.push(<Tag name="Public" colorIndex={5} data-testid={selectors.publicDashboardTag}></Tag>);
buttons.push(
<Tag key="public-dashboard" name="Public" colorIndex={5} data-testid={selectors.publicDashboardTag}></Tag>
);
}
if (dashboard.uid && config.featureToggles.dashboardComments) {