mirror of
https://github.com/penpot/penpot.git
synced 2026-03-07 18:51:14 +00:00
🐛 Only add undo entry when undo changes is not empty.
This commit is contained in:
committed by
Alonso Torres
parent
a1b709a9fd
commit
1bde48730c
@@ -79,7 +79,7 @@
|
||||
(when (and save-undo? (not= uidx ::not-found))
|
||||
(rx/of (reset-undo uidx)))
|
||||
|
||||
(when save-undo?
|
||||
(when (and save-undo? (seq undo-changes))
|
||||
(let [entry {:undo-changes undo-changes
|
||||
:redo-changes changes}]
|
||||
(rx/of (append-undo entry))))))))))
|
||||
|
||||
Reference in New Issue
Block a user