Skip to content

Commit

Permalink
file line limit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Nov 17, 2023
1 parent 238015d commit 7081ced
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,11 @@ export class RegressionDistributionChart extends React.Component<
return;
}

if (targetOptions.length === 0) {
return React.Fragment;
}

if (this.state.targetOption === undefined) {
if (targetOptions.length === 0 || this.state.targetOption === undefined) {
return React.Fragment;
}

const noCohortSelected = this.props.cohorts.length === 0;

const selectedCohortNames = this.props.cohorts.map(
(cohort) => cohort.cohort.name
);
Expand Down Expand Up @@ -217,7 +212,6 @@ export class RegressionDistributionChart extends React.Component<
}
}}
/>

<Stack.Item className={classNames.horizontalAxis}>
<DefaultButton
id="modelOverviewRegressionDistributionChartLabelSelectionButton"
Expand Down

0 comments on commit 7081ced

Please sign in to comment.