mirror of
https://github.com/penpot/penpot.git
synced 2026-09-24 15:48:28 +08:00
🐛 Don't send empty changes on fix broken shape links
This commit is contained in:
@@ -31,8 +31,10 @@
|
||||
(mapcat (partial generate-changes :component-id)
|
||||
(vals (:components data))))]
|
||||
|
||||
(rx/of (dch/commit-changes
|
||||
{:origin it
|
||||
:redo-changes (vec changes)
|
||||
:undo-changes []
|
||||
:save-undo? false}))))))
|
||||
(if (seq changes)
|
||||
(rx/of (dch/commit-changes
|
||||
{:origin it
|
||||
:redo-changes (vec changes)
|
||||
:undo-changes []
|
||||
:save-undo? false}))
|
||||
(rx/empty))))))
|
||||
|
||||
Reference in New Issue
Block a user