diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index d5d3dbd810..c972ac6c0f 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/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)