Merge pull request #904 from ethereum/fix-empty

Fix saving of empty content
pull/869/head^2
yann300 4 years ago committed by GitHub
commit 7e594f6c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide/src/app/files/fileManager.js

@ -528,7 +528,7 @@ class FileManager extends Plugin {
var currentFile = this._deps.config.get('currentFile')
if (currentFile && this.editor.current()) {
var input = this.editor.get(currentFile)
if (input) {
if ((input !== null) && (input !== undefined)) {
var provider = this.fileProviderOf(currentFile)
if (provider) {
provider.set(currentFile, input)

Loading…
Cancel
Save