From 1bde48730ced678002880a3a20bbb5b99c49f565 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 14 Sep 2020 15:32:55 +0200 Subject: [PATCH] :bug: Only add undo entry when undo changes is not empty. --- 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 4c03bfde2..62311fcd3 100644 --- a/frontend/src/app/main/data/workspace/common.cljs +++ b/frontend/src/app/main/data/workspace/common.cljs @@ -79,7 +79,7 @@ (when (and save-undo? (not= uidx ::not-found)) (rx/of (reset-undo uidx))) - (when save-undo? + (when (and save-undo? (seq undo-changes)) (let [entry {:undo-changes undo-changes :redo-changes changes}] (rx/of (append-undo entry))))))))))