fix condition

pull/2356/head
Aniket-Engg 3 years ago committed by Aniket
parent 11eabc8a97
commit b4e5b08352
  1. 3
      apps/remix-ide/src/app/panels/tab-proxy.js

@ -47,8 +47,7 @@ export class TabProxy extends Plugin {
const currentFile = this.fileManager.currentFile()
const currentFileTabPath = currentFile.startsWith(workspace + '/') ? currentFile : workspace + '/' + currentFile
this.removeTab(name, { name: currentFileTabPath })
}
this.removeTab(name)
} else this.removeTab(name)
} else {
name = name.startsWith(this.fileManager.mode + '/') ? name : this.fileManager.mode + '/' + name
this.removeTab(name)

Loading…
Cancel
Save