product variants select

I need help with a product variant configuration form. The form enables users to define attributes and their values for product variants like colors and sizes. While the color selection works fine, I'm having trouble accessing the values of select attributes in the afterStateUpdated function. When I select 'create', it successfully generates variants for colors, but the attribute values are not being properly accessed. I have tried my best but still not working .

This is the video
https://www.loom.com/share/a31cd167b21747c2a359b338b5d1821d?t=46&sid=4b857e0f-9f50-4808-9e8a-2aff00d16f34
Was this page helpful?