Variant with different font weights resets text content

Title: Variant with different font weights resets text content

Description:

When switching between variants that use different font weights, the text content is reset unexpectedly.

Steps to reproduce:

  1. Create a component with multiple variants.
  2. Set different font weights for the text layer in each variant (for example, Regular and Bold).
  3. Enter custom text in an instance of the component.
  4. Switch the instance from one variant to another.

Expected behavior: The custom text content should be preserved when changing variants. Only the font weight should change.

Actual behavior: The text content is reset to the default value when switching to a variant with a different font weight.