From f5bb0d37e9b99b166217e03d545807a3a1805e9e Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 3 Jun 2022 13:01:48 +0200 Subject: [PATCH] fix setting teh current file --- apps/remix-ide/src/app/editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/editor/editor.js b/apps/remix-ide/src/app/editor/editor.js index 689850b88c..cffd5c3de3 100644 --- a/apps/remix-ide/src/app/editor/editor.js +++ b/apps/remix-ide/src/app/editor/editor.js @@ -165,7 +165,7 @@ class Editor extends Plugin { } } } - if (name === this.currentFile) { + if (name !== this.currentFile) { this.currentFile = name this.renderComponent() }