0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix finalize editor state to consider existing position-data

This commit is contained in:
Alejandro Alonso 2023-07-07 10:21:24 +02:00
parent 99693f0fc2
commit 51462ba476

View file

@ -148,9 +148,11 @@
(dch/update-shapes
[id]
(fn [shape]
(let [{:keys [width height]} modifiers]
(let [{:keys [width height position-data]} modifiers]
(-> shape
(assoc :content content)
(cond-> position-data
(assoc :position-data position-data))
(cond-> new-shape?
(assoc :name text))
(cond-> (or (some? width) (some? height))