mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Use d/nilf
This commit is contained in:
parent
2b6075d1a2
commit
fa6b8cb6de
1 changed files with 3 additions and 3 deletions
|
@ -449,7 +449,7 @@
|
|||
(l/derived :tokens-lib workspace-data))
|
||||
|
||||
(def workspace-token-theme-groups
|
||||
(l/derived #(some-> % ctob/get-theme-groups) tokens-lib))
|
||||
(l/derived (d/nilf ctob/get-theme-groups) tokens-lib))
|
||||
|
||||
(defn workspace-token-theme
|
||||
[group name]
|
||||
|
@ -481,13 +481,13 @@
|
|||
(l/derived #(or (some-> % ctob/get-sets) []) tokens-lib))
|
||||
|
||||
(def workspace-active-theme-paths
|
||||
(l/derived #(some-> % ctob/get-active-theme-paths) tokens-lib))
|
||||
(l/derived (d/nilf ctob/get-active-theme-paths) tokens-lib))
|
||||
|
||||
(def workspace-active-theme-paths-no-hidden
|
||||
(l/derived #(disj % ctob/hidden-token-theme-path) workspace-active-theme-paths))
|
||||
|
||||
(def workspace-active-set-names
|
||||
(l/derived #(some-> % ctob/get-active-themes-set-names) tokens-lib))
|
||||
(l/derived (d/nilf ctob/get-active-themes-set-names) tokens-lib))
|
||||
|
||||
(def workspace-active-theme-sets-tokens
|
||||
(l/derived #(or (some-> % ctob/get-active-themes-set-tokens) {}) tokens-lib))
|
||||
|
|
Loading…
Reference in a new issue