🐛 Fix remove color button in the gradient editor (#6993)

This commit is contained in:
Alejandro Alonso 2025-07-28 17:48:05 +02:00 committed by GitHub
parent e77f8b572a
commit 46c440fef2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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