mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 17:26:11 +02: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
|
(dch/update-shapes
|
||||||
[id]
|
[id]
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(let [{:keys [width height]} modifiers]
|
(let [{:keys [width height position-data]} modifiers]
|
||||||
(-> shape
|
(-> shape
|
||||||
(assoc :content content)
|
(assoc :content content)
|
||||||
|
(cond-> position-data
|
||||||
|
(assoc :position-data position-data))
|
||||||
(cond-> new-shape?
|
(cond-> new-shape?
|
||||||
(assoc :name text))
|
(assoc :name text))
|
||||||
(cond-> (or (some? width) (some? height))
|
(cond-> (or (some? width) (some? height))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue