0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00
This commit is contained in:
Florian Schroedl 2024-07-03 11:16:16 +02:00
parent 1e70a4d714
commit e203646085

View file

@ -102,9 +102,9 @@
ptk/WatchEvent
(watch [_ _ _]
(let [{:keys [attributes on-update-shape]} token-type-props
remove-tokens? (wtt/shapes-token-applied? token shapes (:attributes token-type-props))
unapply-tokens? (wtt/shapes-token-applied? token shapes (:attributes token-type-props))
shape-ids (map :id shapes)]
(if remove-tokens?
(if unapply-tokens?
(rx/of
(unapply-token {:attributes attributes
:shape-ids shape-ids}))