mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 15:26:29 -05:00
⚡ Don't create an additional sequence on iterating for tokens
This commit is contained in:
parent
c1ce24e5f0
commit
ff34d1d5f9
1 changed files with 9 additions and 2 deletions
|
@ -292,8 +292,15 @@
|
|||
[:& title-bar {:all-clickable true
|
||||
:title (tr "workspace.token.tokens-section-title" selected-token-set-name)}]
|
||||
|
||||
(for [{:keys [token-key token-type-props tokens]} (concat (:filled token-groups)
|
||||
(:empty token-groups))]
|
||||
(for [{:keys [token-key token-type-props tokens]} (:filled token-groups)]
|
||||
[:> token-component* {:key token-key
|
||||
:type token-key
|
||||
:selected-shapes selected-shapes
|
||||
:active-theme-tokens active-theme-tokens
|
||||
:tokens tokens
|
||||
:token-type-props token-type-props}])
|
||||
|
||||
(for [{:keys [token-key token-type-props tokens]} (:empty token-groups)]
|
||||
[:> token-component* {:key token-key
|
||||
:type token-key
|
||||
:selected-shapes selected-shapes
|
||||
|
|
Loading…
Add table
Reference in a new issue