From 079cff0bc014d6ffa13691eb87c55b954d7c7047 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 9 Mar 2023 15:53:10 +0100 Subject: [PATCH] :bug: Fix problem with undo transactions --- frontend/src/app/main/data/workspace/undo.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/undo.cljs b/frontend/src/app/main/data/workspace/undo.cljs index 108d5f9fb4..d17b6de887 100644 --- a/frontend/src/app/main/data/workspace/undo.cljs +++ b/frontend/src/app/main/data/workspace/undo.cljs @@ -81,7 +81,8 @@ (update [_ state] (cond (and (get-in state [:workspace-undo :transaction]) - (or (d/not-empty? (get-in state [:workspace-undo :transaction :undo-changes])) + (or (not stack?) + (d/not-empty? (get-in state [:workspace-undo :transaction :undo-changes])) (d/not-empty? (get-in state [:workspace-undo :transaction :redo-changes])))) (accumulate-undo-entry state entry)