Hello,
Trying to figure out how to retrieve the COMPONENT_SET to which a component/variant belongs to.
“masterComponent” will give me the name for the variant… also the type is INSTANCE, what is the best way do I identify that an INSTANCE is also variant?
if (element.type === 'INSTANCE' + :has(variantProperties)) {
get (instance.mainComponent.parent.id)
}
Something like that…
One observation the “instance.mainComponent.parent” will be of type “COMPONENT”… but if I click the component wrapper itself for the variants the type is “COMPONENT_SET”… not sure if that is by design, but it would be good if they match