Variant Issue with Nested exposedInstances and Switching Off Instances


all nested props are on :point_up_2:


one of the nested props is off :point_up_2:

I have noticed that when a variant contains nested exposedInstances instances, and you switch off one of them, exposedInstances returns an error. However, I believe that this shouldn’t be the case, as Figma allows this action. Instead, it should simply remove the switched-off instance from the array or add a specific property, such as unchecked. Am I missing something here?

I found what cause that. I had a line to skip invisible layers:

figma.skipInvisibleInstanceChildren = true;

Just remove it.

1 Like