Skip to content

Commit 55a942f

Browse files
committed
fix: check body in repository json metrics
Missing body in repository json metrics was crashing platform_ui webpage display.
1 parent 1945c87 commit 55a942f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/stores/modelRepositories/repository.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export default class Repository {
4444
let value = '--';
4545
let metricKey = attr;
4646

47-
if (!this.jsonMetrics)
47+
if (
48+
!this.jsonMetrics ||
49+
typeof this.jsonMetrics.body === "undefined"
50+
)
4851
return value;
4952

5053
const { measure, measure_hist } = this.jsonMetrics.body;

0 commit comments

Comments
 (0)