From 57b9efbcd79f28fdaf2af39449e75718a2dd922d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 3 Mar 2026 09:50:23 +0100 Subject: [PATCH] :bug: Fix redo operation on commenting on workspace (#8455) --- frontend/src/app/main/data/workspace/undo.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/undo.cljs b/frontend/src/app/main/data/workspace/undo.cljs index d3c78d1a28..2b2c6f048b 100644 --- a/frontend/src/app/main/data/workspace/undo.cljs +++ b/frontend/src/app/main/data/workspace/undo.cljs @@ -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)))]