mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
Fix unexpected exception on form errors handling.
This commit is contained in:
parent
32f4720111
commit
cf7b8d2224
@ -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…
x
Reference in New Issue
Block a user