fix getcontent

pull/4355/head
filip mertens 11 months ago
parent 216e5f5c5c
commit c4e355b487
  1. 3
      apps/remix-ide/src/app/files/fileManager.ts

@ -621,8 +621,7 @@ class FileManager extends Plugin {
return new Promise((resolve, reject) => {
if (this.currentFile() === path) {
const editorContent = this.editor.currentContent()
resolve(editorContent || '')
return
if(editorContent) resolve(editorContent)
}
provider.get(path, (err, content) => {
if (err) reject(err)

Loading…
Cancel
Save