Skip to content

Commit

Permalink
Fixed regression in apply-action
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Feb 17, 2024
1 parent df8af0d commit 20f05ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
(defmutation do-apply-action [{:keys [f args]}]
(action [{:keys [state]}]
(try
(swap! state apply f args)
(swap! state (fn [s] (apply f s args)))
(catch #?(:cljs :default :clj Throwable) t
(log/error "Apply action failed:" {:f f :args args})))))

Expand Down

0 comments on commit 20f05ef

Please sign in to comment.