From b262e6a46ff2199cf269b3ee8b9e3b119af15098 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 30 Jul 2025 11:44:07 +0200 Subject: [PATCH] :bug: Fix incorrect condition on checking text shape attrs --- common/src/app/common/logic/shapes.cljc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/logic/shapes.cljc b/common/src/app/common/logic/shapes.cljc index 1f41a71c54..69d0a456b2 100644 --- a/common/src/app/common/logic/shapes.cljc +++ b/common/src/app/common/logic/shapes.cljc @@ -36,11 +36,12 @@ text-changed-attrs (fn [shape] (let [new-shape (get new-objects (:id shape)) - attrs (ctt/get-diff-attrs (:content shape) (:content new-shape)) + attrs (ctt/get-diff-attrs (:content shape) (:content new-shape)) + ;; Unapply token when applying typography asset style - attrs (if (set/intersection text-typography-attrs attrs) - (into attrs cto/typography-keys) - attrs)] + attrs (if (seq (set/intersection text-typography-attrs attrs)) + (into attrs cto/typography-keys) + attrs)] (apply set/union (map cto/shape-attr->token-attrs attrs)))) check-attr (fn [shape changes attr]