Fix saving of empty content

pull/904/head
ioedeveloper 4 years ago
parent 07fffb8417
commit e64b08a392
  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