#114 Don't access length of outstanding_problems when on 202/204
Merged 2 years ago by frantisekz. Opened 2 years ago by frantisekz.

file modified
+1 -1
@@ -33,7 +33,7 @@ 

      koschei: itemsCntInCategory("koschei"),

      orphans: R.sum(packages.map(pkg => (pkg.data.orphan.depends_on_orphaned ? 1 : 0) + (pkg.data.orphan.orphaned ? 1 : 0))),

      fti: itemsCntInCategory("fti"),

-     abrt_reports: R.sum(packages.map(p => p.data.abrt_reports.outstanding_problems.length)),

+     abrt_reports: R.sum(packages.map(p => p.data.abrt_reports?.outstanding_problems?.length ? 1 : 0)),

    }

  }

  

no initial comment

Pull-Request has been merged by frantisekz

2 years ago
Metadata