Skip to content

Commit

Permalink
update resultsWithAnomalies check
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Feb 16, 2021
1 parent 26bd68c commit feb0062
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/ml/public/application/explorer/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ export class Explorer extends React.Component {
const noJobsFound = selectedJobs === null || selectedJobs.length === 0;
const hasResults = overallSwimlaneData.points && overallSwimlaneData.points.length > 0;
const hasResultsWithAnomalies =
hasResults &&
overallSwimlaneData.points.some((v) => v.value > 0) &&
(hasResults && overallSwimlaneData.points.some((v) => v.value > 0)) ||
tableData.anomalies?.length > 0;

if (noJobsFound && !loading) {
Expand Down

0 comments on commit feb0062

Please sign in to comment.