Skip to content

Commit

Permalink
Data Tree: Set state
Browse files Browse the repository at this point in the history
when tspClientResponse or treeResponse are not ok. This stops the
"Analysis running" message from displaying infinitely.

Signed-off-by: Erica Bugden <erica.bugden@gmail.com>
  • Loading branch information
ebugden authored and bhufmann committed Jan 27, 2022
1 parent e8298ab commit 5aa4c09
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ export class DataTreeOutputComponent extends AbstractOutputComponent<AbstractOut
xyTree: treeResponse.model.entries,
columns
});
} else {
this.setState({
outputStatus: treeResponse.status
});
}
return treeResponse.status;
}
this.setState({
outputStatus: ResponseStatus.FAILED
});
return ResponseStatus.FAILED;
}

Expand Down

0 comments on commit 5aa4c09

Please sign in to comment.