0
Fork 0
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:
Florian Schroedl 2024-10-02 14:20:27 +02:00
parent 5170d328bd
commit 306a5e5f85

View file

@ -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!