🐛 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 (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))