mirror of
https://github.com/penpot/penpot.git
synced 2026-03-09 19:56:05 +00:00
🐛 Fix working of undo when more than 50 entries
This commit is contained in:
committed by
Alonso Torres
parent
20952e30da
commit
736c9e7e8c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user