mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 08:16:10 +02:00
🐛 Fix detach stroke color
This commit is contained in:
parent
16db31c53c
commit
6d96dd3818
2 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,10 @@
|
|||
(mf/use-callback
|
||||
(mf/deps ids)
|
||||
(fn []
|
||||
(st/emit! (dc/change-stroke ids (dissoc current-stroke-color :id :file-id)))))
|
||||
(let [remove-multiple (fn [[_ value]] (not= value :multiple))
|
||||
current-stroke-color (-> (into {} (filter remove-multiple) current-stroke-color)
|
||||
(assoc :id nil :file-id nil))]
|
||||
(st/emit! (dc/change-stroke ids current-stroke-color)))))
|
||||
|
||||
on-stroke-style-change
|
||||
(fn [event]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue