0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 23:35:58 -05:00

Don't create an additional sequence on iterating for tokens

This commit is contained in:
Andrey Antukh 2025-02-04 18:19:44 +01:00
parent c1ce24e5f0
commit ff34d1d5f9

View file

@ -292,8 +292,15 @@
[:& title-bar {:all-clickable true [:& title-bar {:all-clickable true
:title (tr "workspace.token.tokens-section-title" selected-token-set-name)}] :title (tr "workspace.token.tokens-section-title" selected-token-set-name)}]
(for [{:keys [token-key token-type-props tokens]} (concat (:filled token-groups) (for [{:keys [token-key token-type-props tokens]} (:filled token-groups)]
(:empty 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 [:> token-component* {:key token-key
:type token-key :type token-key
:selected-shapes selected-shapes :selected-shapes selected-shapes