diff --git a/apps/remix-ide/src/app/editor/editor.js b/apps/remix-ide/src/app/editor/editor.js index 57a05a136f..f25b04d21f 100644 --- a/apps/remix-ide/src/app/editor/editor.js +++ b/apps/remix-ide/src/app/editor/editor.js @@ -155,6 +155,7 @@ class Editor extends Plugin { } _switchSession (path) { + if (path === this.currentFile) return this.triggerEvent('sessionSwitched', []) this.currentFile = path this.renderComponent()