Skip to content

Conversation

@megasmack
Copy link

@megasmack megasmack commented Jul 26, 2025

The transformVariantOptions method was returning the "apiName" because the availableValues found in the attribute info is use the apiNames. Updated to use those values to find the correct label/apiName pair found in the options array. This will keep the same value, but the value displayed in the drop down will use the label.

Also added some optional chain operators to proudctVariantSelectorUtils methods for better error protection.

@megasmack megasmack requested a review from a team as a code owner July 26, 2025 22:43
@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @megasmack to sign the Salesforce Inc. Contributor License Agreement.

@megasmack
Copy link
Author

I signed the Contributor License Agreement. Clicking on the link says I signed it. Does the workflow need to be re-triggered somehow?

sf-tejas-nadkarni pushed a commit to sf-tejas-nadkarni/commerce-on-lightning-components that referenced this pull request Nov 3, 2025
* fix: add variants to product details

* fix: add boundary checks

* fix: pr review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants