Skip to content

Commit

Permalink
AIRAVATA-3556 Fix text file download so that it parses as text, not JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
machristie committed Jan 12, 2022
1 parent 8ad248b commit bebb680
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,11 @@ export default {
setFileContent() {
this.loadDataProduct().then(() => {
if (this.editAvailable) {
utils.FetchUtils.get(
this.downloadUrl,
"",
{
ignoreErrors: false,
showSpinner: true,
},
"text"
).then((res) => {
utils.FetchUtils.get(this.downloadUrl, "", {
ignoreErrors: false,
showSpinner: true,
responseType: "text",
}).then((res) => {
this.fileContent = res;
this.setFileContentEditor(this.fileContent);
});
Expand Down

0 comments on commit bebb680

Please sign in to comment.