From 69cc9d02ba126bdc4119775dc153069d9e28a5b7 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 2 Oct 2024 17:23:04 +0200 Subject: [PATCH] Cleanup: item->token --- frontend/src/app/main/ui/workspace/tokens/core.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/core.cljs b/frontend/src/app/main/ui/workspace/tokens/core.cljs index c37ace5a24..14c2df7254 100644 --- a/frontend/src/app/main/ui/workspace/tokens/core.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/core.cljs @@ -25,16 +25,16 @@ (defn tokens->select-options [{:keys [shape tokens attributes selected-attributes]}] (map - (fn [{:keys [name] :as item}] - (cond-> (assoc item :label name) - (wtt/token-applied? item shape (or selected-attributes attributes)) (assoc :selected? true))) + (fn [{:keys [name] :as token}] + (cond-> (assoc token :label name) + (wtt/token-applied? token shape (or selected-attributes attributes)) (assoc :selected? true))) tokens)) (defn tokens-name-map->select-options [{:keys [shape tokens attributes selected-attributes]}] (map - (fn [[_k {:keys [name] :as item}]] - (cond-> (assoc item :label name) - (wtt/token-applied? item shape (or selected-attributes attributes)) (assoc :selected? true))) + (fn [[_k {:keys [name] :as token}]] + (cond-> (assoc token :label name) + (wtt/token-applied? token shape (or selected-attributes attributes)) (assoc :selected? true))) tokens)) ;; JSON export functions -------------------------------------------------------