mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 17:18:21 -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)]
|
items (conj-undo-entry items entry)]
|
||||||
(-> state
|
(-> state
|
||||||
(update :workspace-undo assoc :items items
|
(update :workspace-undo assoc :items items
|
||||||
:index (inc index))))
|
:index (min (inc index)
|
||||||
|
(dec MAX-UNDO-SIZE)))))
|
||||||
state))
|
state))
|
||||||
|
|
||||||
(defn- accumulate-undo-entry
|
(defn- accumulate-undo-entry
|
||||||
|
|
Loading…
Add table
Reference in a new issue