-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix JS errors when Product is not found #370
Conversation
JSON.parse() only accepts strings. When the galleryRoot was not present we passed an object which led to a SyntaxError.
lgtm 👍 Could you please add a test case each for your fixes? You can find related test cases in https://github.com/adobe/aem-core-cif-components/tree/master/ui.apps/test/components/commerce/product. |
I added a test for the change in |
@dhardtke Thanks for your contribution 👍 |
Description
JSON.parse()
which does not accept objects and the code crashes with aSyntaxError
.Related Issue
Fixes #281.
Fixes #369.
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: