diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 158c02d0b3..4476f3b384 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -338,7 +338,8 @@ class CompileTab { this._view.errorContainer = yo`
` this._view.contractSelection = this.contractSelection() this._view.compilerContainer = this.compilerContainer.render() - this.compilerContainer.currentFile = this._deps.fileManager.currentFile() + const currentFile = this._deps.fileManager.currentFile() + if (currentFile) this.compilerContainer.currentFile = currentFile this._view.el = yo`