mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
Fix token updating
This commit is contained in:
parent
5d61ddb385
commit
a49992a74e
1 changed files with 2 additions and 11 deletions
|
@ -75,17 +75,8 @@
|
||||||
|
|
||||||
|
|
||||||
(defn get-active-theme-sets-tokens-names-map [state]
|
(defn get-active-theme-sets-tokens-names-map [state]
|
||||||
(let [active-set-ids (get-ordered-active-set-ids state)]
|
(when-let [lib (get-workspace-tokens-lib state)]
|
||||||
(reduce
|
(ctob/get-active-themes-set-tokens lib)))
|
||||||
(fn [names-map-acc set-id]
|
|
||||||
(let [token-ids (get-workspace-token-set-tokens set-id state)]
|
|
||||||
(reduce
|
|
||||||
(fn [acc token-id]
|
|
||||||
(if-let [token (wtt/get-workspace-token token-id state)]
|
|
||||||
(assoc acc (wtt/token-identifier token) token)
|
|
||||||
acc))
|
|
||||||
names-map-acc token-ids)))
|
|
||||||
(ordered-map) active-set-ids)))
|
|
||||||
|
|
||||||
;; === Set selection
|
;; === Set selection
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue