fix getting the current file provider

pull/178/head
yann300 4 years ago
parent e98261dc55
commit 33ce1b49c9
  1. 4
      apps/remix-ide/src/app/files/compiler-metadata.js

@ -92,13 +92,15 @@ class CompilerMetadata extends Plugin {
// TODO: is only called by dropdownLogic and can be moved there
deployMetadataOf (contractName, fileLocation) {
return new Promise((resolve, reject) => {
var provider = this.fileManager.currentFileProvider()
var provider
let path
if (fileLocation) {
provider = this.fileManager.fileProviderOf(fileLocation)
path = fileLocation.split('/')
path.pop()
path = path.join('/')
} else {
provider = this.fileManager.currentFileProvider()
path = this.fileManager.currentPath()
}

Loading…
Cancel
Save