Skip to content

Commit

Permalink
xy-output-component: Reverse negative if statement
Browse files Browse the repository at this point in the history
Make these 'if' statement checks positively ordered instead of negative.

Signed-off-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
marco-miller committed May 26, 2022
1 parent f904b71 commit 0cb6f83
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,10 @@ export class XYOutputComponent extends AbstractTreeOutputComponent<AbstractOutpu
const tspClientResponse = await this.props.tspClient.fetchXY(this.props.traceId, this.props.outputDescriptor.id, xyDataParameters);
const xyDataResponse = tspClientResponse.getModel();
if (tspClientResponse.isOk() && xyDataResponse) {
if (!this.isScatterPlot) {
this.buildXYData(xyDataResponse.model.series);
} else {
if (this.isScatterPlot) {
this.buildScatterData(xyDataResponse.model.series);
} else {
this.buildXYData(xyDataResponse.model.series);
}
}
if (document.getElementById(this.props.traceId + this.props.outputDescriptor.id + 'handleSpinner')) {
Expand Down

0 comments on commit 0cb6f83

Please sign in to comment.