Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix workbench issue that csv result not written to downloaded file #1024

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions workbench/public/components/Main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,20 @@ export class Main extends React.Component<MainProps, MainState> {
};
}
if (!response.data.ok) {
let err = response.data.resp;
console.log("Error occurred when processing query response: ", err)

// Mark fulfilled to true as long as the data is fulfilled
if (response.data.body) {
return {
fulfilled: true,
errorMessage: err,
data: response.data.body
}
}
return {
fulfilled: false,
errorMessage: response.data.resp,
data: response.data.body,
errorMessage: err,
};
}

Expand Down