diff --git a/web/frontend/src/JobFootprint.svelte b/web/frontend/src/JobFootprint.svelte index e4839afb..e860e04c 100644 --- a/web/frontend/src/JobFootprint.svelte +++ b/web/frontend/src/JobFootprint.svelte @@ -43,8 +43,10 @@ } else if (jm?.metric?.series?.length > 1) { const avgs = jm.metric.series.map(jms => jms.statistics.avg) mv = round(mean(avgs), 2) - } else { + } else if (jm?.metric?.series) { mv = round(jm.metric.series[0].statistics.avg, 2) + } else { + mv = 0.0 } }