From 919ca68a775b7d5474b4aefa344323d95d1e4fd3 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Wed, 18 May 2022 10:35:11 +0200 Subject: [PATCH] :bug: Fix undo when drawing curve --- frontend/src/app/main/data/workspace/common.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/common.cljs b/frontend/src/app/main/data/workspace/common.cljs index 187ee5c44..f396d8547 100644 --- a/frontend/src/app/main/data/workspace/common.cljs +++ b/frontend/src/app/main/data/workspace/common.cljs @@ -124,7 +124,7 @@ (let [edition (get-in state [:workspace-local :edition]) drawing (get state :workspace-drawing)] ;; Editors handle their own undo's - (when-not (or (some? edition) (not-empty drawing)) + (when-not (or (some? edition) (and (not-empty drawing) (nil? (:object drawing)))) (let [undo (:workspace-undo state) items (:items undo) index (or (:index undo) (dec (count items)))]