mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 09:36:13 +02:00
🐛 Fix error first time doing a component change operation
This commit is contained in:
parent
fd6001090e
commit
eeaee5fd13
1 changed files with 12 additions and 11 deletions
|
@ -887,6 +887,7 @@
|
|||
|
||||
check-changes
|
||||
(fn [[event [old-data _mid_data _new-data]]]
|
||||
(when old-data
|
||||
(let [{:keys [changes save-undo? undo-group]} (deref event)
|
||||
components-changed (reduce #(into %1 (ch/components-changed old-data %2))
|
||||
#{}
|
||||
|
@ -897,7 +898,7 @@
|
|||
:undo-group undo-group)
|
||||
(run! st/emit!
|
||||
(map #(update-component-sync % (:id old-data) undo-group)
|
||||
components-changed)))))]
|
||||
components-changed))))))]
|
||||
|
||||
(when components-v2
|
||||
(->> change-s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue