From d8a7402046b6c3feea595f679609db5a7b9554e5 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 19 May 2022 16:26:08 +0200 Subject: [PATCH] :bug: Fix problems with text position data --- .../app/main/ui/workspace/shapes/text/viewport_texts.cljs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 a02b70682..dcc044686 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 @@ -126,15 +126,11 @@ new-modifiers (-> (get modifiers id) strip-modifier)] (or (and (not (identical? old-shape new-shape)) (not= old-shape new-shape)) - - ;; The shape has changed only if its modifier is not empty and it's different - (and (not= new-modifiers old-modifiers) - (or (not (gsh/empty-modifiers? (:modifiers old-modifiers))) - (not (gsh/empty-modifiers? (:modifiers new-modifiers)))))))) + (not= new-modifiers old-modifiers)))) changed-texts (mf/use-memo - (mf/deps text-shapes) + (mf/deps text-shapes modifiers) #(->> (keys text-shapes) (filter text-change?) (map (d/getf text-shapes))))