diff --git a/frontend/src/app/main/ui/workspace/colorpicker.cljs b/frontend/src/app/main/ui/workspace/colorpicker.cljs index bb40c905c3..e96947174a 100644 --- a/frontend/src/app/main/ui/workspace/colorpicker.cljs +++ b/frontend/src/app/main/ui/workspace/colorpicker.cljs @@ -275,10 +275,8 @@ handle-gradient-remove-stop (mf/use-fn - (mf/deps state) (fn [index] - (when (> (count (:stops state)) 2) - (st/emit! (dc/remove-gradient-stop index))))) + (st/emit! (dc/remove-gradient-stop index)))) handle-stop-edit-start (mf/use-fn