Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe-zh committed Jan 29, 2021
1 parent 614c500 commit 7e94fdd
Showing 1 changed file with 12 additions and 2 deletions.
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

0 comments on commit 7e94fdd

Please sign in to comment.