fix initiallizing currentFile

pull/1342/head
yann300 3 years ago committed by davidzagi93@gmail.com
parent 470f60f3d5
commit 8135699cb1
  1. 2
      apps/remix-ide/src/app/tabs/compile-tab.js

@ -114,7 +114,6 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
} }
async onActivation () { async onActivation () {
this.currentFile = await this.call('fileManager', 'file')
super.onActivation() super.onActivation()
this.call('filePanel', 'registerContextMenuItem', { this.call('filePanel', 'registerContextMenuItem', {
id: 'solidity', id: 'solidity',
@ -125,6 +124,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
path: [], path: [],
pattern: [] pattern: []
}) })
this.currentFile = await this.call('fileManager', 'file')
} }
getCompilerParameters () { getCompilerParameters () {

Loading…
Cancel
Save