Avoid showing the alert option in the drop down

Only show it when there really is an alert table to see.
This commit is contained in:
Andrew Eisenberg
2021-12-06 16:38:29 -08:00
parent 60c977bff9
commit d5f0a659af

View File

@@ -106,7 +106,9 @@ export class ResultTables
}
private getResultSetNames(): string[] {
return this.props.parsedResultSets.resultSetNames.concat([ALERTS_TABLE_NAME]);
return this.props.interpretation
? this.props.parsedResultSets.resultSetNames.concat([ALERTS_TABLE_NAME])
: this.props.parsedResultSets.resultSetNames;
}
constructor(props: ResultTablesProps) {