diff --git a/frontend/src/app/main/ui/workspace/tokens/core.cljs b/frontend/src/app/main/ui/workspace/tokens/core.cljs index 6974b35c4..e4b698817 100644 --- a/frontend/src/app/main/ui/workspace/tokens/core.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/core.cljs @@ -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}))