mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
Fix validation form errors rendering.
This commit is contained in:
parent
cf7b8d2224
commit
3b675af74a
1 changed files with 2 additions and 3 deletions
|
@ -5,11 +5,10 @@
|
|||
|
||||
(defn input-error
|
||||
[errors field]
|
||||
(when-let [errors (get errors field)]
|
||||
(when-let [error (get errors field)]
|
||||
(html
|
||||
[:ul.form-errors
|
||||
(for [error errors]
|
||||
[:li {:key error} (tr error)])])))
|
||||
[:li {:key error} (tr error)]])))
|
||||
|
||||
(defn error-class
|
||||
[errors field]
|
||||
|
|
Loading…
Add table
Reference in a new issue