Compare commits

...

1 Commits

Author SHA1 Message Date
Andrey Antukh
6832cbd68b 🐛 Fix redo operation on commenting on workspace 2026-02-24 13:07:17 +01:00

View File

@@ -317,8 +317,10 @@
(let [objects (dsh/lookup-page-objects state)
edition (get-in state [:workspace-local :edition])
drawing (get state :workspace-drawing)]
(when (and (or (nil? edition) (ctl/grid-layout? objects edition))
(or (empty? drawing) (= :curve (:tool drawing))))
;; Editors handle their own undo's
(when (or (and (nil? edition) (nil? (:object drawing)))
(ctl/grid-layout? objects edition))
(let [undo (:workspace-undo state)
items (:items undo)
index (or (:index undo) (dec (count items)))]