-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-3826: [Navigation menu] Field groups navigation menu cannot select 2nd choice #569
IBX-3826: [Navigation menu] Field groups navigation menu cannot select 2nd choice #569
Conversation
const sections = sectionGroup.querySelectorAll('.ibexa-edit-content__secondary-section'); | ||
|
||
return sections ? [...sections].at(-1) : null; |
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.
sections
will always be true
const sections = sectionGroup.querySelectorAll('.ibexa-edit-content__secondary-section'); | |
return sections ? [...sections].at(-1) : null; | |
return [...sections].at(-1); |
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.
also, I think it is too early for .at
, unfortunately. 😞
https://caniuse.com/mdn-javascript_builtins_array_at
0ee9eb8
to
770fbdb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
QA approved on IbexaDXP 4.2 commerce.
Checklist:
$ composer fix-cs
)