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

IBX-3826: [Navigation menu] Field groups navigation menu cannot select 2nd choice #569

Conversation

GrabowskiM
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-3826
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

Comment on lines 23 to 25
const sections = sectionGroup.querySelectorAll('.ibexa-edit-content__secondary-section');

return sections ? [...sections].at(-1) : null;
Copy link
Contributor

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

Suggested change
const sections = sectionGroup.querySelectorAll('.ibexa-edit-content__secondary-section');
return sections ? [...sections].at(-1) : null;
return [...sections].at(-1);

Copy link
Contributor

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

@GrabowskiM GrabowskiM force-pushed the IBX-3826-navigation-menu-field-groups-navigation-menu-cannot-select-2nd-choice branch from 0ee9eb8 to 770fbdb Compare September 15, 2022 08:42
@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@tomaszszopinski tomaszszopinski left a 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.

@mikadamczyk mikadamczyk merged commit e4db151 into main Sep 15, 2022
@mikadamczyk mikadamczyk deleted the IBX-3826-navigation-menu-field-groups-navigation-menu-cannot-select-2nd-choice branch September 15, 2022 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants