diff --git a/apps/remix-ide/src/app/files/file-explorer.js b/apps/remix-ide/src/app/files/file-explorer.js index 97c016989d..b273411cb6 100644 --- a/apps/remix-ide/src/app/files/file-explorer.js +++ b/apps/remix-ide/src/app/files/file-explorer.js @@ -241,14 +241,7 @@ function fileExplorer (localRegistry, files, menuItems) { if (!removeFolder) { tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) } else { - const provider = fileManager.currentFileProvider() - - if (provider) { - const { type } = provider - - return self.updatePath(type) - } - self.updatePath('browser') + self.updatePath(self.files.type) } }, () => {}) } @@ -292,14 +285,7 @@ function fileExplorer (localRegistry, files, menuItems) { if (!removeFile) { tooltip(`Failed to remove file ${key}.`) } else { - const provider = fileManager.currentFileProvider() - - if (provider) { - const { type } = provider - - return self.updatePath(type) - } - self.updatePath('browser') + self.updatePath(self.files.type) } }, () => {}