mirror of
https://github.com/penpot/penpot.git
synced 2025-03-28 07:31:25 -05:00
Fix unexpected exception on form errors handling.
This commit is contained in:
parent
32f4720111
commit
cf7b8d2224
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
errors-path (into [:errors type] (if (coll? field) field [field]))]
|
||||
(-> state
|
||||
(assoc-in form-path value)
|
||||
(update-in errors-path dissoc field)))))
|
||||
(update-in (butlast errors-path) dissoc (last errors-path))))))
|
||||
|
||||
(defn assign-field-value
|
||||
[type field value]
|
||||
|
|
Loading…
Add table
Reference in a new issue