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

🐛 Fix tokens not being editable

This commit is contained in:
Florian Schroedl 2025-01-24 12:18:38 +01:00
parent ef61f9c7aa
commit 62ca665d55

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