From 306a5e5f8513811ccc6b8d988493006a10bd16e4 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 2 Oct 2024 14:20:27 +0200 Subject: [PATCH] Sets don't have a specific order inside themes --- common/src/app/common/types/tokens_lib.cljc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 056a18cd0..d9a5c95a0 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -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!