0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

🐛 Fix swap is swapping main components on mixed

This commit is contained in:
Pablo Alba 2023-11-22 10:56:53 +01:00 committed by Andrés Moya
parent a29291e6f2
commit cee827a97b

View file

@ -492,7 +492,7 @@
[:div {:class (stl/css :component-parent-name)}
(cfh/merge-path-item (:path component) (:name component))])]]
(when swap-opened?
[:& component-swap {:shapes shapes}])
[:& component-swap {:shapes copies}])
(when (and (not swap-opened?) (not multi) components-v2)
[:& component-annotation {:id id :shape shape :component component}])])])))