From 46c440fef2d80b1bff971c3d69845ee9d4526467 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 28 Jul 2025 17:48:05 +0200 Subject: [PATCH] :bug: Fix remove color button in the gradient editor (#6993) --- frontend/src/app/main/ui/workspace/colorpicker.cljs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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