Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix <Admin dashboard> causes a console warning due to missing key in the Menu #8005

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

DerYeger
Copy link
Contributor

Using the dashboard property of the Admin component results in an error with the Menu component.
The DashboardMenuItem does not have a key set, hence React complains about missing unique-keys.

This PR defines a key (default-dashboard-menu-item) for the dashboard's menu item.

@fzaninotto fzaninotto merged commit 0054180 into marmelab:master Jul 26, 2022
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 4.2.5 milestone Jul 26, 2022
@fzaninotto fzaninotto changed the title fix(menu): add unique key Fix <Admin dashboard> causes a console warning due to missing key in the Menu Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants