mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 10:11:39 +02:00
🐛 Don't send empty changes on fix broken shape links
This commit is contained in:
parent
88261c2ec3
commit
eae5dfc828
1 changed files with 7 additions and 5 deletions
|
@ -31,8 +31,10 @@
|
||||||
(mapcat (partial generate-changes :component-id)
|
(mapcat (partial generate-changes :component-id)
|
||||||
(vals (:components data))))]
|
(vals (:components data))))]
|
||||||
|
|
||||||
(rx/of (dch/commit-changes
|
(if (seq changes)
|
||||||
{:origin it
|
(rx/of (dch/commit-changes
|
||||||
:redo-changes (vec changes)
|
{:origin it
|
||||||
:undo-changes []
|
:redo-changes (vec changes)
|
||||||
:save-undo? false}))))))
|
:undo-changes []
|
||||||
|
:save-undo? false}))
|
||||||
|
(rx/empty))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue