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 warning when creating custom Menu based on source #2994

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix warning when creating custom Menu based on source
Closes #2970
  • Loading branch information
fzaninotto committed Mar 13, 2019
commit e3a8aca7eba847f932a9bea3a88ce36f17576beb
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/layout/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const enhance = compose(
prev.resources.every(
(value, index) => value === next.resources[index] // shallow compare resources
) &&
prev.pathname == next.pathname &&
prev.open == next.open,
prev.pathname === next.pathname &&
prev.open === next.open,
}
),
withStyles(styles)
Expand Down