From cf7b8d222408523c3a040c4177e3d74007ce11e2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh <niwi@niwi.nz> Date: Sat, 28 May 2016 13:44:16 +0300 Subject: [PATCH] Fix unexpected exception on form errors handling. --- src/uxbox/data/forms.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxbox/data/forms.cljs b/src/uxbox/data/forms.cljs index 357ad2723..efcb7ca9e 100644 --- a/src/uxbox/data/forms.cljs +++ b/src/uxbox/data/forms.cljs @@ -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]