From 6e9a77edcd89883cc50b05fb3210ed71b230f55d Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 2 Jun 2022 22:31:27 +0200 Subject: [PATCH] :bug: Fix undo for drawing curves --- 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 f396d8547..54523a2e0 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) (and (not-empty drawing) (nil? (:object drawing)))) + (when (and (nil? edition) (nil? (:object drawing))) (let [undo (:workspace-undo state) items (:items undo) index (or (:index undo) (dec (count items)))]