mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
🐛 Fix problem when editing color in group
This commit is contained in:
parent
163215d5c9
commit
7b9b3dabbe
2 changed files with 4 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
- Fix file contextual menu in shared libraries at dashboard [Taiga #1865](https://tree.taiga.io/project/penpot/issue/1865).
|
||||
- Fix problem with color picker and fonts [#1049](https://github.com/penpot/penpot/issues/1049)
|
||||
- Fix negative values in blur [#1815](https://tree.taiga.io/project/penpot/issue/1815)
|
||||
- Fix problem when editing color in group [#1816](https://tree.taiga.io/project/penpot/issue/1816)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
### :boom: Breaking changes
|
||||
|
|
|
@ -798,7 +798,9 @@
|
|||
|
||||
edit-color
|
||||
(fn [new-color]
|
||||
(let [updated-color (merge new-color (select-keys color [:id :file-id :name]))]
|
||||
(let [old-data (-> (select-keys color [:id :file-id])
|
||||
(assoc :name (cp/merge-path-item (:path color) (:name color))))
|
||||
updated-color (merge new-color old-data)]
|
||||
(st/emit! (dwl/update-color updated-color file-id))))
|
||||
|
||||
delete-color
|
||||
|
|
Loading…
Add table
Reference in a new issue