add filter again

pull/5370/head
aniket-engg 12 months ago committed by Aniket
parent 37628d23f1
commit 08e88760ca
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

@ -112,7 +112,7 @@ export class CompileTabLogic {
this.event.emit('startingCompilation') this.event.emit('startingCompilation')
if(await this.api.fileExists('remappings.txt')) { if(await this.api.fileExists('remappings.txt')) {
this.api.readFile('remappings.txt').then(remappings => { this.api.readFile('remappings.txt').then(remappings => {
this.compiler.set('remappings', remappings.split('\n')) this.compiler.set('remappings', remappings.split('\n').filter(Boolean))
}) })
} else this.compiler.set('remappings', []) } else this.compiler.set('remappings', [])
if (this.configFilePath) { if (this.configFilePath) {

Loading…
Cancel
Save