🐛 Fix problem with redo shortcut

This commit is contained in:
alonso.torres 2023-03-06 14:23:26 +01:00
parent dec854a012
commit 827ce6c42a
2 changed files with 2 additions and 1 deletions

View file

@ -87,7 +87,7 @@
(watch [it state _]
(let [edition (get-in state [:workspace-local :edition])
drawing (get state :workspace-drawing)]
(when (and (nil? edition) (or (empty drawing) (= :curve (:tool drawing))))
(when (and (nil? edition) (or (empty? drawing) (= :curve (:tool drawing))))
(let [undo (:workspace-undo state)
items (:items undo)
index (or (:index undo) (dec (count items)))]