Commit 65f18888 authored by Stan Hu's avatar Stan Hu

Fix performance bar warnings when Rugged is disabled

`detailed_metric.vue` was attempting to read the `duration` field even
when the metric did not exist in the JSON payload. We now check for the
existence of the metrics before attempting to display the value.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65491
parent 52b857f1
......@@ -44,7 +44,7 @@ export default {
</script>
<template>
<div
v-if="currentRequest.details"
v-if="currentRequest.details && metricDetails"
:id="`peek-view-${metric}`"
class="view qa-performance-bar-detailed-metric"
>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment