-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Ensure menus before map operation in Nav block #36355
Conversation
Size Change: +8 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing this.
6d82f7e
to
25bf151
Compare
Rebasin' then I'll merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never thought I’d approve a PR from my phone, but here we go
Cherry picked into the Gutenberg 11.9 release in: 885dc53 |
Description
This PR fixes a potential source of error in the Navigation block placeholder whereby the "existing menus" dropdown attempts to map over variables which are expected to be arrays but which may undefined.
This PR safeguards against this.
Note that
<MenuGroup>
will not render anything if it doesn't have children which really helps us out here.How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).