mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 11:41:39 +02:00
🐛 Fix not active sets on json import (#6087)
This commit is contained in:
parent
5c2c96fc2e
commit
337c61db2c
1 changed files with 3 additions and 3 deletions
|
@ -1310,7 +1310,7 @@ Will return a value that matches this schema:
|
|||
:tokens (flatten-nested-tokens-json tokens ""))))
|
||||
lib))
|
||||
lib' (cond-> lib'
|
||||
(and (seq active-sets) (empty? active-themes))
|
||||
(and (seq active-sets) (= #{hidden-token-theme-path} active-themes))
|
||||
(update-theme hidden-token-theme-group hidden-token-theme-name
|
||||
#(assoc % :sets active-sets)))]
|
||||
(if-let [themes-data (seq themes-data)]
|
||||
|
@ -1391,10 +1391,10 @@ Will return a value that matches this schema:
|
|||
;; with pages and pages-index.
|
||||
(make-tokens-lib :sets (d/ordered-map)
|
||||
:themes (d/ordered-map)
|
||||
:active-themes #{}))
|
||||
:active-themes #{hidden-token-theme-path}))
|
||||
|
||||
([& {:keys [sets themes active-themes]}]
|
||||
(let [active-themes (d/nilv active-themes #{})
|
||||
(let [active-themes (d/nilv active-themes #{hidden-token-theme-path})
|
||||
themes (if (empty? themes)
|
||||
(update themes hidden-token-theme-group d/oassoc hidden-token-theme-name (make-hidden-token-theme))
|
||||
themes)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue