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 react Menu Fragment error #3782

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Fix react Menu Fragment error #3782

merged 1 commit into from
Jun 30, 2022

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

Suspend this error

    console.error
      Material-UI: The Menu component doesn't accept a Fragment as a child.
      Consider providing an array instead.

      at node_modules/@material-ui/core/Menu/Menu.js:130:17
      at node_modules/react/cjs/react.development.js:1067:17
      at mapIntoArray (node_modules/react/cjs/react.development.js:964:23)
      at mapIntoArray (node_modules/react/cjs/react.development.js:1004:23)
      at Object.mapChildren [as map] (node_modules/react/cjs/react.development.js:1066:3)
      at Menu (node_modules/@material-ui/core/Menu/Menu.js:123:18)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:14985:18)
      at updateForwardRef (node_modules/react-dom/cjs/react-dom.development.js:17044:20)

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

Copy link
Member

@knanao knanao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you go!

@khanhtc1202 khanhtc1202 merged commit 9bd2096 into master Jun 30, 2022
@khanhtc1202 khanhtc1202 deleted the fix-react-fragment-error branch June 30, 2022 02:41
@github-actions github-actions bot mentioned this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants