0
Fork 0
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:
Andrey Antukh 2016-05-28 13:44:16 +03:00
parent 32f4720111
commit cf7b8d2224
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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]