From 092a5139e3be10f8a96ac56be1081255b143bb5d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 4 Nov 2025 16:49:08 +0100 Subject: [PATCH] :bug: Fix incorrect token sets migration (#7673) --- common/src/app/common/types/tokens_lib.cljc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index df7aa38cf2..a215322e36 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -1991,13 +1991,19 @@ Will return a value that matches this schema: #?(:clj (defn- migrate-to-v1-4 - "Migrate the TokensLib data structure internals to v1.2 version; it + "Migrate the TokensLib data structure internals to v1.4 version; it expects input from v1.3 version" [params] (let [migrate-set-node (fn recurse [node] - (if (token-set-legacy? node) + (cond + (token-set-legacy? node) (make-token-set node) + + (token-set? node) + node + + :else (d/update-vals node recurse)))] (update params :sets d/update-vals migrate-set-node))))