mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
🐛 Fix migration keyword (#6057)
This commit is contained in:
parent
b52e8bc87c
commit
474cd1e55a
1 changed files with 3 additions and 3 deletions
|
@ -1226,14 +1226,14 @@
|
||||||
(update :pages-index update-vals update-container)
|
(update :pages-index update-vals update-container)
|
||||||
(update :components update-vals update-container))))
|
(update :components update-vals update-container))))
|
||||||
|
|
||||||
(defmethod migrate-data "Add hidden theme"
|
(defmethod migrate-data "Ensure hidden theme"
|
||||||
[data _]
|
[data _]
|
||||||
(letfn [(update-tokens-lib [tokens-lib]
|
(letfn [(update-tokens-lib [tokens-lib]
|
||||||
(let [hidden-theme (ctob/get-hidden-theme tokens-lib)]
|
(let [hidden-theme (ctob/get-hidden-theme tokens-lib)]
|
||||||
(if (nil? hidden-theme)
|
(if (nil? hidden-theme)
|
||||||
(ctob/add-theme tokens-lib (ctob/make-hidden-token-theme))
|
(ctob/add-theme tokens-lib (ctob/make-hidden-token-theme))
|
||||||
tokens-lib)))]
|
tokens-lib)))]
|
||||||
(if (contains? data :tokensLib)
|
(if (contains? data :tokens-lib)
|
||||||
(update data :tokens-lib update-tokens-lib)
|
(update data :tokens-lib update-tokens-lib)
|
||||||
data)))
|
data)))
|
||||||
|
|
||||||
|
@ -1305,5 +1305,5 @@
|
||||||
"legacy-65"
|
"legacy-65"
|
||||||
"legacy-66"
|
"legacy-66"
|
||||||
"legacy-67"
|
"legacy-67"
|
||||||
"Add hidden theme"
|
"Ensure hidden theme"
|
||||||
"Add token theme id"]))
|
"Add token theme id"]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue