mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Normalize set names on importing themes dtcg json
This commit is contained in:
committed by
Andrés Moya
parent
93bf198073
commit
c6bfae0d63
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user