Skip to content

Commit 1ddc5d7

Browse files
committed
changing delete csv
1 parent 0474ed7 commit 1ddc5d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/woqlClient.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,8 @@ WOQLClient.prototype.getCSV = function(csvName, download, gtype, gid) {
490490
if (commitMsg && csvName) {
491491
let commit = this.generateCommitInfo(commitMsg)
492492
let options = {}, filePath
493-
const formData = new FormData();
494-
formData.append('payload', "name="+csvName)
495-
formData.append('payload', JSON.stringify(commit))
496-
return this.dispatch(CONST.DELETE_CSV, this.connectionConfig.csvURL(gtype, gid), formData).then(results => {
493+
options.name=csvName;
494+
return this.dispatch(CONST.DELETE_CSV, this.connectionConfig.csvURL(gtype, gid), options).then(results => {
497495
return results;
498496
})
499497
}

0 commit comments

Comments
 (0)