diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 340cd90e01..9a74ffee0d 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -470,6 +470,7 @@ fileExplorer.prototype.toGist = function (id) { return data.files || [] } + // If 'id' is not defined, it is not a gist update but a creation so we have to take the files from the browser explorer. const folder = id ? 'browser/gists/' + id : 'browser/' this.packageFiles(this.files, folder, (error, packaged) => { if (error) {