[Issue] Fix swatch-renderer.js #39925
Labels
Issue: needs update
Additional information is require, waiting for response
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Reported on 2.4.x
Indicates original Magento version for the Issue report.
This issue is automatically created based on existing pull request: #39924: Fix swatch-renderer.js
Fix for "Uncaught TypeError: salableProducts is undefined" when no variant is available
Description (*)
This code fixes an error, when a configurable product has no available variant.
This is the JS error in the browser console:
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: