0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-23 05:01:23 -05:00

Merge pull request #5679 from tokens-studio/45-florian-broken-token-create

🐛 Fix broken token create/update when set contains broken tokens
This commit is contained in:
Eva Marco 2025-01-28 10:02:42 +01:00 committed by GitHub
commit b27324f903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -352,7 +352,7 @@
on-submit
(mf/use-fn
(mf/deps validate-name validate-descripion token resolved-tokens)
(mf/deps validate-name validate-descripion token active-theme-tokens)
(fn [e]
(dom/prevent-default e)
(mf/set-ref-val! cancel-ref nil)
@ -370,7 +370,7 @@
(validate-token-value+ {:value final-value
:name-value final-name
:token token
:tokens resolved-tokens})])
:tokens active-theme-tokens})])
(p/finally (fn [result err]
;; The result should be a vector of all resolved validations
;; We do not handle the error case as it will be handled by the components validations