0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 16:18:11 -05:00

🐛 Fix duplicate component in assets generates wrong main copy

This commit is contained in:
Pablo Alba 2023-03-14 18:18:23 +01:00 committed by Andrés Moya
parent 7391a4086a
commit e59d106315

View file

@ -122,13 +122,16 @@
position (gpt/add (gpt/point (:x main-instance-shape) (:y main-instance-shape))
(gpt/point (+ (:width main-instance-shape) 50) 0))
component-instance-extra-data (if components-v2 {:main-instance? true} {})
[new-instance-shape new-instance-shapes]
(when (and (some? main-instance-page) (some? main-instance-shape))
(ctn/make-component-instance main-instance-page
component
library-data
position
true))]
true
component-instance-extra-data))]
[nil nil new-instance-shape new-instance-shapes])