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:
parent
99693f0fc2
commit
51462ba476
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue