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

Error handling on productswitcher columns calculation #2666

Merged
merged 5 commits into from
Apr 25, 2022

Conversation

JohannesDoberer
Copy link
Contributor

Fixes #2650

@JohannesDoberer JohannesDoberer added the bug Something isn't working label Apr 12, 2022
@wdoberschuetz wdoberschuetz self-assigned this Apr 12, 2022
@@ -19,8 +19,14 @@ class NavigationHelpersClass {

getProductSwitcherColumnsNumber() {
const productSwitcherConfig = this.getProductSwitcherConfig();
if (!productSwitcherConfig.items) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

(n2h) Could we get a test case where items undefined or null? :)

@@ -19,8 +19,14 @@ class NavigationHelpersClass {

getProductSwitcherColumnsNumber() {
const productSwitcherConfig = this.getProductSwitcherConfig();
if (!productSwitcherConfig.items) return;
let productSwitcherColumns = productSwitcherConfig.columns;
Copy link
Contributor

Choose a reason for hiding this comment

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

(n2h) This seems to be never reassigned so it could be a const.

@JohannesDoberer JohannesDoberer merged commit 77ce87a into master Apr 25, 2022
@JohannesDoberer JohannesDoberer deleted the ProductSwitcherColumn-bug branch April 25, 2022 07:15
@ndricimrr ndricimrr mentioned this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate daily dashboard console error
3 participants