🐛 Fix redo operation on commenting on workspace (#8455)

This commit is contained in:
Andrey Antukh
2026-03-03 09:50:23 +01:00
committed by GitHub
parent db0a8b65ca
commit 57b9efbcd7

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)))]