0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Fix problem with undo transactions

This commit is contained in:
alonso.torres 2023-03-09 15:53:10 +01:00
parent 7954ad0edf
commit 079cff0bc0

View file

@ -81,7 +81,8 @@
(update [_ state]
(cond
(and (get-in state [:workspace-undo :transaction])
(or (d/not-empty? (get-in state [:workspace-undo :transaction :undo-changes]))
(or (not stack?)
(d/not-empty? (get-in state [:workspace-undo :transaction :undo-changes]))
(d/not-empty? (get-in state [:workspace-undo :transaction :redo-changes]))))
(accumulate-undo-entry state entry)