mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 08:38:15 -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
|
(defn input-error
|
||||||
[errors field]
|
[errors field]
|
||||||
(when-let [errors (get errors field)]
|
(when-let [error (get errors field)]
|
||||||
(html
|
(html
|
||||||
[:ul.form-errors
|
[:ul.form-errors
|
||||||
(for [error errors]
|
[:li {:key error} (tr error)]])))
|
||||||
[:li {:key error} (tr error)])])))
|
|
||||||
|
|
||||||
(defn error-class
|
(defn error-class
|
||||||
[errors field]
|
[errors field]
|
||||||
|
|
Loading…
Add table
Reference in a new issue