mirror of
https://github.com/penpot/penpot.git
synced 2026-10-30 06:20:32 +00:00
generate-new-shape-for-swap set the swap slot after instantiating the new copy, through change-touched. The validation made when the copy is instantiated ran before that and reported :missing-slot. The slot only depends on the old shape, so compute it before the copy is created and pass it to generate-instantiate-component with the new :swap-slot option. The copy is added with its slot, and the validation sees it complete. The resulting file and its undo are the same as before. AI-assisted-by: claude-opus-5-5