From a48518206e5fbb7f7b2679acc8cc37799732020e Mon Sep 17 00:00:00 2001
From: Max <m.giller.dev@gmail.com>
Date: Fri, 9 Jul 2021 13:01:19 +0200
Subject: [PATCH] Fixed previous tool bug

---
 editor/js/state.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editor/js/state.js b/editor/js/state.js
index 7f4bdd0..9370f8d 100644
--- a/editor/js/state.js
+++ b/editor/js/state.js
@@ -28,7 +28,7 @@ class State extends Tool {
     }
 
     setTool(tool) {
-        if (this.previousTool === tool) {
+        if (this.tool === tool) {
             return;
         }
 
-- 
GitLab