Skip to content

Commit

Permalink
Fallback to full stats if the versioned stats don't exist (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 authored Apr 24, 2024
1 parent c232f2b commit 6bf2754
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export default function SuiteSelector(props: SelectorProps): JSX.Element {
{props.suites
.sort((a, b) => a.name.localeCompare(b.name))
.filter((suite) => {
let versionStats: TestStats = suite.versionedStats[props.esFlag];
return versionStats.total !== 0;
const stats: TestStats =
suite.versionedStats[props.esFlag] ?? suite.stats;
return stats.total !== 0;
})
.map((suite) => {
return (
Expand Down

0 comments on commit 6bf2754

Please sign in to comment.