Skip to content

Commit 6bf2754

Browse files
authored
Fallback to full stats if the versioned stats don't exist (#155)
1 parent c232f2b commit 6bf2754

File tree

1 file changed

+3
-2
lines changed
  • src/components/conformance/ResultsDisplay/components/SuiteSelector

1 file changed

+3
-2
lines changed

src/components/conformance/ResultsDisplay/components/SuiteSelector/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ export default function SuiteSelector(props: SelectorProps): JSX.Element {
1515
{props.suites
1616
.sort((a, b) => a.name.localeCompare(b.name))
1717
.filter((suite) => {
18-
let versionStats: TestStats = suite.versionedStats[props.esFlag];
19-
return versionStats.total !== 0;
18+
const stats: TestStats =
19+
suite.versionedStats[props.esFlag] ?? suite.stats;
20+
return stats.total !== 0;
2021
})
2122
.map((suite) => {
2223
return (

0 commit comments

Comments
 (0)