From 41948ff86b38f79ee460ad456522c8cc419d0761 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 25 Apr 2022 11:41:05 +0200 Subject: [PATCH] :bug: Changes after review --- frontend/src/app/main/data/workspace/texts.cljs | 3 +-- .../src/app/main/ui/workspace/shapes/text/viewport_texts.cljs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index b6cf52a64..4b3cf805a 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -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)))))))) diff --git a/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts.cljs b/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts.cljs index f225161f1..7e593d5a6 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/viewport_texts.cljs @@ -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]}