mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 14:41:38 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
f76f4615cf
24 changed files with 177 additions and 56 deletions
|
@ -481,3 +481,13 @@
|
|||
(cond-> errors
|
||||
(all-spaces? (get data field))
|
||||
(assoc field {:message error-msg}))))
|
||||
|
||||
(defn validate-not-all-spaces
|
||||
[field error-msg]
|
||||
(fn [errors data]
|
||||
(let [value (get data field)]
|
||||
(cond-> errors
|
||||
(and
|
||||
(all-spaces? value)
|
||||
(> (count value) 0))
|
||||
(assoc field {:message error-msg})))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue