penpot/frontend
Eva Marco 2e13bea1c4 🐛 Fix validation error when turning a component into a variant
transform-in-variant (Ctrl+K on a component) runs a chain of events,
each one committing its own changes. It set the variant-id on the main
instance before setting it on the component, so the shape validation
of that step saw them out of sync and rejected the change. The next
steps then failed too, as the main instance was never a variant.

Set the variant-id on the component first, and give the main instance
an empty variant-name, which is what the validator expects while the
variant has no properties yet.

AI-assisted-by: claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 08:56:19 +02:00
..
2026-09-25 14:57:56 +02:00
2026-09-25 11:11:44 +02:00
2026-09-22 10:22:31 +02:00