summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Read <tread@gitlab.com>2019-07-22 10:15:38 +0200
committerTristan Read <tread@gitlab.com>2019-07-22 10:15:38 +0200
commitc6d8b271941920f22f7c4232995357d4faf9bea7 (patch)
treeff0dac50ce8e1195d9a11dce5e1f4d94efd1633e
parente2f10bbaad08ba3cafbb3573ad7eba9660566a66 (diff)
downloadgitlab-ce-tr-embed-metrics-frontend.tar.gz
Use graph title as key for embedstr-embed-metrics-frontend
-rw-r--r--app/assets/javascripts/monitoring/components/embed.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/components/embed.vue b/app/assets/javascripts/monitoring/components/embed.vue
index c1384f523b7..e17f03de0fd 100644
--- a/app/assets/javascripts/monitoring/components/embed.vue
+++ b/app/assets/javascripts/monitoring/components/embed.vue
@@ -84,8 +84,8 @@ export default {
<div class="metrics-embed">
<div v-if="groupData" class="row w-100 m-n2 pb-4">
<monitor-area-chart
- v-for="(graphData, graphIndex) in chartsWithData(groupData.metrics)"
- :key="graphIndex"
+ v-for="graphData in chartsWithData(groupData.metrics)"
+ :key="graphData.title"
:graph-data="graphData"
:container-width="elWidth"
group-id="monitor-area-chart"