0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix position bug when syncing component with several nested

This commit is contained in:
Andrés Moya 2020-10-30 09:31:20 +01:00 committed by Alonso Torres
parent 6feccd5e36
commit 7a80297d31

View file

@ -434,6 +434,12 @@
(let [component-shape (d/seek #(= (:shape-ref %)
(:shape-ref shape))
(vals (:objects component)))
root-shape (if (:component-id shape)
shape
root-shape)
root-component (if (:component-id shape)
component-shape
root-component)
[rchanges uchanges]
(update-attrs shape
@ -541,6 +547,12 @@
(let [component-shape (d/seek #(= (:shape-ref %)
(:shape-ref shape))
(vals (:objects component)))
root-shape (if (:component-id shape)
shape
root-shape)
root-component (if (:component-id shape)
component-shape
root-component)
[rchanges uchanges]
(update-attrs component-shape