mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 07:18:25 +02:00
🐛 Fix remove color button in the gradient editor (#6993)
This commit is contained in:
parent
e77f8b572a
commit
46c440fef2
1 changed files with 1 additions and 3 deletions
|
@ -275,10 +275,8 @@
|
||||||
|
|
||||||
handle-gradient-remove-stop
|
handle-gradient-remove-stop
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps state)
|
|
||||||
(fn [index]
|
(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
|
handle-stop-edit-start
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue