From 474cd1e55a77a48e800fe8aa9ccca28e97144046 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Tue, 11 Mar 2025 16:19:51 +0100 Subject: [PATCH] :bug: Fix migration keyword (#6057) --- common/src/app/common/files/migrations.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 518c3e930..e71a072c4 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -1226,14 +1226,14 @@ (update :pages-index update-vals update-container) (update :components update-vals update-container)))) -(defmethod migrate-data "Add hidden theme" +(defmethod migrate-data "Ensure hidden theme" [data _] (letfn [(update-tokens-lib [tokens-lib] (let [hidden-theme (ctob/get-hidden-theme tokens-lib)] (if (nil? hidden-theme) (ctob/add-theme tokens-lib (ctob/make-hidden-token-theme)) tokens-lib)))] - (if (contains? data :tokensLib) + (if (contains? data :tokens-lib) (update data :tokens-lib update-tokens-lib) data))) @@ -1305,5 +1305,5 @@ "legacy-65" "legacy-66" "legacy-67" - "Add hidden theme" + "Ensure hidden theme" "Add token theme id"]))