mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 13:39:02 +00:00
🐛 Fix incorrect condition on checking text shape attrs
This commit is contained in:
parent
02acd81c2c
commit
b262e6a46f
@ -36,11 +36,12 @@
|
|||||||
text-changed-attrs
|
text-changed-attrs
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(let [new-shape (get new-objects (:id 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
|
;; Unapply token when applying typography asset style
|
||||||
attrs (if (set/intersection text-typography-attrs attrs)
|
attrs (if (seq (set/intersection text-typography-attrs attrs))
|
||||||
(into attrs cto/typography-keys)
|
(into attrs cto/typography-keys)
|
||||||
attrs)]
|
attrs)]
|
||||||
(apply set/union (map cto/shape-attr->token-attrs attrs))))
|
(apply set/union (map cto/shape-attr->token-attrs attrs))))
|
||||||
|
|
||||||
check-attr (fn [shape changes attr]
|
check-attr (fn [shape changes attr]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user