mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 13:31:39 +02: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]))]
|
errors-path (into [:errors type] (if (coll? field) field [field]))]
|
||||||
(-> state
|
(-> state
|
||||||
(assoc-in form-path value)
|
(assoc-in form-path value)
|
||||||
(update-in errors-path dissoc field)))))
|
(update-in (butlast errors-path) dissoc (last errors-path))))))
|
||||||
|
|
||||||
(defn assign-field-value
|
(defn assign-field-value
|
||||||
[type field value]
|
[type field value]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue