mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 22:01:40 +02: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))
|
(when (and save-undo? (not= uidx ::not-found))
|
||||||
(rx/of (reset-undo uidx)))
|
(rx/of (reset-undo uidx)))
|
||||||
|
|
||||||
(when save-undo?
|
(when (and save-undo? (seq undo-changes))
|
||||||
(let [entry {:undo-changes undo-changes
|
(let [entry {:undo-changes undo-changes
|
||||||
:redo-changes changes}]
|
:redo-changes changes}]
|
||||||
(rx/of (append-undo entry))))))))))
|
(rx/of (append-undo entry))))))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue