mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Only add undo entry when undo changes is not empty.
This commit is contained in:
parent
a1b709a9fd
commit
1bde48730c
1 changed files with 1 additions and 1 deletions
|
@ -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))))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue