mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Sets don't have a specific order inside themes
This commit is contained in:
parent
5170d328bd
commit
306a5e5f85
1 changed files with 2 additions and 3 deletions
|
@ -327,8 +327,7 @@
|
|||
[:description [:maybe :string]]
|
||||
[:is-source :boolean]
|
||||
[:modified-at ::sm/inst]
|
||||
[:sets [:and [:set {:gen/max 5} :string]
|
||||
[:fn d/ordered-set?]]]]
|
||||
[:sets [:set {:gen/max 5} :string]]]
|
||||
[:fn (partial instance? TokenTheme)]])
|
||||
|
||||
(sm/register! ::token-theme schema:token-theme)
|
||||
|
@ -353,7 +352,7 @@
|
|||
(update :group #(or % top-level-theme-group-name))
|
||||
(update :is-source #(or % false))
|
||||
(update :modified-at #(or % (dt/now)))
|
||||
(update :sets #(into (d/ordered-set) %)))
|
||||
(update :sets #(into #{} %)))
|
||||
token-theme (map->TokenTheme params)]
|
||||
|
||||
(dm/assert!
|
||||
|
|
Loading…
Add table
Reference in a new issue