mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix remove color button in the gradient editor (#6993)
This commit is contained in:
parent
e77f8b572a
commit
46c440fef2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user