mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix problem with undo transactions
This commit is contained in:
parent
7954ad0edf
commit
079cff0bc0
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user