Layer boolean property is not changing while change variant of a component in Figma

I’m Creating Sidebar Collapse animation it’s working fine. but the problem is when I change the component variant ( default to active ) text is not visible while collapsing the sidebar.
This is happening only after changing the orient of the component.

I am Hiding text in layer property to show only icon during collapse sidebar.