mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 15:11:39 +02:00
🐛 Normalize set names on importing themes dtcg json
This commit is contained in:
parent
93bf198073
commit
c6bfae0d63
1 changed files with 3 additions and 1 deletions
|
@ -1297,7 +1297,9 @@ Will return a value that matches this schema:
|
|||
(map (fn [theme]
|
||||
(-> theme
|
||||
(set/rename-keys {"selectedTokenSets" "sets"})
|
||||
(update "sets" keys)))))
|
||||
(update "sets" keys)
|
||||
(update "sets" #(map normalize-set-name %))))))
|
||||
|
||||
active-sets (get metadata "activeSets")
|
||||
active-themes (get metadata "activeThemes")
|
||||
active-themes (if (empty? active-themes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue