diff --git a/frontend/src/app/main/ui/workspace/tokens/core.cljs b/frontend/src/app/main/ui/workspace/tokens/core.cljs index ddeab2424..31d8f9a69 100644 --- a/frontend/src/app/main/ui/workspace/tokens/core.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/core.cljs @@ -105,7 +105,7 @@ (fn [shape] (update shape :applied-tokens remove-keys attributes))))))) -(defn on-toggle-token +(defn toggle-token [{:keys [token-type-props token shapes] :as _props}] (ptk/reify ::on-toggle-token ptk/WatchEvent diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index 1d5863780..4edabdfcc 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -100,9 +100,9 @@ (fn [event token] (dom/stop-propagation event) (st/emit! - (wtc/on-toggle-token {:token token - :shapes selected-shapes - :token-type-props token-type-props})))) + (wtc/toggle-token {:token token + :shapes selected-shapes + :token-type-props token-type-props})))) tokens-count (count tokens)] [:div {:on-click on-toggle-open-click} [:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]