adobe / aem-core-cif-components

A set of configurations and components to get you started with AEM Commerce development
Apache License 2.0
103 stars 81 forks source link

JavaScript errors on Product pages if Product can't be found #369

Closed dhardtke closed 4 years ago

dhardtke commented 4 years ago

Expected Behaviour

When opening a product page where the product can't be found, the Product component should not throw.

Actual Behaviour

Screenshot_20200810_125119 When loading the page (e.g. http://localhost:4502/content/venia/us/en/products/product-page.i-do-not-exist.html) a JS error appears in the console.

Reproduce Scenario (including but not limited to)

Open a product detail page where the product can't be found.

Steps to Reproduce

  1. Open http://localhost:4502/content/venia/us/en/products/product-page.i-do-not-exist.html
  2. Notice the error in the console (see the screenshot above)

Platform and Version

AEM 6.5.5 on-premise, CIF Components 1.2.0

Sample Code that illustrates the problem

-

Logs taken while reproducing problem

-

herzog31 commented 4 years ago

Fixed by #370.