mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 04:48:26 +02: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))
|
(l/derived :tokens-lib workspace-data))
|
||||||
|
|
||||||
(def workspace-token-theme-groups
|
(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
|
(defn workspace-token-theme
|
||||||
[group name]
|
[group name]
|
||||||
|
@ -481,13 +481,13 @@
|
||||||
(l/derived #(or (some-> % ctob/get-sets) []) tokens-lib))
|
(l/derived #(or (some-> % ctob/get-sets) []) tokens-lib))
|
||||||
|
|
||||||
(def workspace-active-theme-paths
|
(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
|
(def workspace-active-theme-paths-no-hidden
|
||||||
(l/derived #(disj % ctob/hidden-token-theme-path) workspace-active-theme-paths))
|
(l/derived #(disj % ctob/hidden-token-theme-path) workspace-active-theme-paths))
|
||||||
|
|
||||||
(def workspace-active-set-names
|
(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
|
(def workspace-active-theme-sets-tokens
|
||||||
(l/derived #(or (some-> % ctob/get-active-themes-set-tokens) {}) tokens-lib))
|
(l/derived #(or (some-> % ctob/get-active-themes-set-tokens) {}) tokens-lib))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue