Skip to content

Commit 658556e

Browse files
authored
Merge pull request #55 from f5devcentral/1.5.0
xml win test tweak2
2 parents f9f11ba + a1159f2 commit 658556e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/xmlStats.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,23 +260,23 @@ export default class XmlStats {
260260

261261
// count up all the stats
262262
this.stats.summary = {};
263-
if (this.stats.vs.rank.length) {
263+
if (this.stats.vs?.rank?.length) {
264264
this.stats.summary.vsRankTotal = this.stats.vs.rank.length;
265265
}
266-
if (this.stats.vs.zeroVs.length) {
266+
if (this.stats.vs?.zeroVs?.length) {
267267
this.stats.summary.vsWithNoStats = this.stats.vs.zeroVs.length;
268268
}
269-
if (this.stats.gtm.wips.length) {
269+
if (this.stats.gtm?.wips?.length) {
270270
this.stats.summary.wipsRankTotal = this.stats.gtm.wips.length;
271271
}
272272

273-
if (this.stats.gtm.wips_no_stats.length) {
273+
if (this.stats.gtm?.wips_no_stats?.length) {
274274
this.stats.summary.wipsNoStats = this.stats.gtm.wips_no_stats.length;
275275
}
276-
if (this.stats.rule_stat.length) {
276+
if (this.stats.rule_stat?.length) {
277277
this.stats.summary.rulesRankTotal = this.stats.rule_stat.length;
278278
}
279-
if (this.stats.rule_stat_none.length) {
279+
if (this.stats.rule_stat_none?.length) {
280280
this.stats.summary.rulesWithNoStats = this.stats.rule_stat_none.length;
281281
}
282282

0 commit comments

Comments
 (0)