0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 05:34:23 -05:00

Exclude hidden theme

This commit is contained in:
Andrey Fedorov 2024-12-11 17:13:23 +01:00
parent 7e8de9aa24
commit 2264efa1cd

View file

@ -886,7 +886,8 @@ When `before-set-name` is nil, move set to bottom")
(encode-dtcg [_]
(let [themes (into []
(comp
(filter (partial instance? TokenTheme))
(filter #(and (instance? TokenTheme %)
(not (hidden-temporary-theme? %))))
(map (fn [token-theme]
(->> token-theme
(into {})