Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Error: Cannot read property id of undefined #549

Closed
1 of 2 tasks
ymaheshwari1 opened this issue Nov 28, 2020 · 0 comments · Fixed by #550
Closed
1 of 2 tasks

Error: Cannot read property id of undefined #549

ymaheshwari1 opened this issue Nov 28, 2020 · 0 comments · Fixed by #550
Labels
bug Something isn't working

Comments

@ymaheshwari1
Copy link
Contributor

Current behavior

If in the configurable_options of a product we don't have an option for color, then on the Product page, getting the error as Cannot read property id of undefined.

Expected behavior

If we don't have color as one of the options then also the page should work without any errors.

Steps to reproduce the issue

  1. Remove the color options from the configurable_options from the product object.
  2. Go to product page.
  3. See the console, you will be having an error.

Can you handle fixing this bug by yourself?

  • YES
  • NO

Environment details

  • Browser:
  • OS:
  • Code Version:

Additional information

@ymaheshwari1 ymaheshwari1 added the bug Something isn't working label Nov 28, 2020
ymaheshwari1 added a commit to hotwax/vsf-capybara that referenced this issue Nov 28, 2020
ymaheshwari1 added a commit to hotwax/vsf-capybara that referenced this issue Jan 7, 2021
ymaheshwari1 added a commit to hotwax/vsf-capybara that referenced this issue Jan 7, 2021
Fifciu added a commit that referenced this issue Jan 7, 2021
…d-of-undefined

Improved: the code to fix the error of undefined on the product page (#549)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant