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:
parent
7954ad0edf
commit
079cff0bc0
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue