From d9c4fc37215f47d0f7267db76661ee3edd9e5cc9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 18 Mar 2025 12:06:33 +0100 Subject: [PATCH] :sparkles: Calculate uuid lazily on creating token theme --- common/src/app/common/types/tokens_lib.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 796be13a7..5df3e4d23 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -588,7 +588,7 @@ (update :group d/nilv top-level-theme-group-name) (update :description d/nilv "") (update :is-source d/nilv false) - (update :id d/nilv (str (uuid/next))) + (update :id #(or % (str (uuid/next)))) (update :modified-at #(or % (dt/now))) (update :sets set) (check-token-theme-attrs)