0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 02:32:13 -05:00

🐛 Changes after review

This commit is contained in:
alonso.torres 2022-04-25 11:41:05 +02:00
parent 01ca538c72
commit 41948ff86b
2 changed files with 2 additions and 3 deletions

View file

@ -392,8 +392,7 @@
(keys position-data)
(fn [shape]
(-> shape
(assoc :position-data (get position-data (:id shape))))
)
(assoc :position-data (get position-data (:id shape)))))
{:save-undo? false :reg-objects? false}))
(rx/of (fn [state]
(dissoc state ::update-position-data-debounce ::update-position-data))))))))

View file

@ -40,7 +40,7 @@
(assoc :content (attrs/merge content editor-content)))))
(defn- update-text-shape
[{:keys [grow-type id] :as shape} node]
[{:keys [grow-type id]} node]
;; Check if we need to update the size because it's auto-width or auto-height
(when (contains? #{:auto-height :auto-width} grow-type)
(let [{:keys [width height]}