🐛 Fix last migration of token sets (#6957)

This commit is contained in:
Andrés Moya 2025-07-24 08:42:16 +02:00 committed by GitHub
parent 122701ee7b
commit c49e9fbf18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1767,7 +1767,14 @@ Will return a value that matches this schema:
themes (fres/read-object! r)
active-themes (fres/read-object! r)
sets (d/update-vals sets make-token-set)]
migrate-sets-node
(fn recurse [node]
(if (token-set-legacy? node)
(make-token-set node)
(d/update-vals node recurse)))
sets
(d/update-vals sets migrate-sets-node)]
(->TokensLib sets themes active-themes))))