mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05:00
🐛 Fix working of undo when more than 50 entries
This commit is contained in:
parent
20952e30da
commit
736c9e7e8c
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@
|
|||
items (conj-undo-entry items entry)]
|
||||
(-> state
|
||||
(update :workspace-undo assoc :items items
|
||||
:index (inc index))))
|
||||
:index (min (inc index)
|
||||
(dec MAX-UNDO-SIZE)))))
|
||||
state))
|
||||
|
||||
(defn- accumulate-undo-entry
|
||||
|
|
Loading…
Add table
Reference in a new issue