fix clearing targetfilename

pull/5370/head
yann300 3 years ago
parent eab5ad471f
commit e26fca712f
  1. 2
      apps/remix-ide/src/app/tabs/intelligent-script-executor.ts

@ -46,10 +46,10 @@ export class IntelligentScriptExecutor extends Plugin {
this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => {
if (this.targetFileName === contract.file && contract.object && contract.object.devdoc['custom:dev-run-script']) {
this.targetFileName = null
const file = contract.object.devdoc['custom:dev-run-script']
if (file) this.runScript(file)
}
this.targetFileName = null
})
}

Loading…
Cancel
Save