mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 12:09:24 +00:00
🐛 Fix working of undo when more than 50 entries
This commit is contained in:
parent
20952e30da
commit
736c9e7e8c
@ -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…
x
Reference in New Issue
Block a user