- {this.filtered.map(({label, color, yHTML, isHighlighted}) => {
+ {this.filtered.map(({label, color, yHTML, isHighlighted}, i) => {
const seriesClass = isHighlighted
? 'dygraph-legend--row highlight'
: 'dygraph-legend--row'
return (
-
+
{label}
{yHTML || 'no value'}
diff --git a/ui/src/shared/components/SourceIndicator.tsx b/ui/src/shared/components/SourceIndicator.tsx
index 0020885fa..7eb36e57e 100644
--- a/ui/src/shared/components/SourceIndicator.tsx
+++ b/ui/src/shared/components/SourceIndicator.tsx
@@ -1,6 +1,5 @@
import React, {FunctionComponent} from 'react'
import _ from 'lodash'
-import uuid from 'uuid'
import ReactTooltip from 'react-tooltip'
import {SourceContext} from 'src/CheckSources'
@@ -19,19 +18,17 @@ const getTooltipText = (source: Source, sourceOverride: Source): string => {
}
const SourceIndicator: FunctionComponent
= ({sourceOverride}) => {
- const uuidTooltip: string = uuid.v4()
-
return (
{(source: Source) => (
{
{sections.map(
- section =>
+ (section, i) =>
section.enabled && (
= ({
}) => {
return (
- {tags.map(item => {
+ {tags.map((item, i) => {
return (
{
public render() {
const {item, confirmText} = this.props
return (
-
+
{item.text || item.name || item}
{
- {items.map(item => (
+ {items.map((item, i) => (
diff --git a/ui/src/shared/components/ThresholdsList.tsx b/ui/src/shared/components/ThresholdsList.tsx
index 7c0ad57ff..212b771e0 100644
--- a/ui/src/shared/components/ThresholdsList.tsx
+++ b/ui/src/shared/components/ThresholdsList.tsx
@@ -60,9 +60,9 @@ class ThresholdsList extends PureComponent
{
>
Add Threshold
- {this.sortedColors.map(color =>
+ {this.sortedColors.map((color, i) =>
color.id === THRESHOLD_TYPE_BASE ? (
-
+
Base Color
{
{
const {menuItems} = this.props
return (
- {menuItems.map(item => (
+ {menuItems.map((item, i) => (
-
diff --git a/ui/src/tempVars/components/TemplatePreviewList.tsx b/ui/src/tempVars/components/TemplatePreviewList.tsx
index 52b5352c6..9947f11bf 100644
--- a/ui/src/tempVars/components/TemplatePreviewList.tsx
+++ b/ui/src/tempVars/components/TemplatePreviewList.tsx
@@ -1,5 +1,4 @@
import React, {PureComponent} from 'react'
-import uuid from 'uuid'
import {ErrorHandling} from 'src/shared/decorators/errors'
import FancyScrollbar from 'src/shared/components/FancyScrollbar'
@@ -27,9 +26,9 @@ class TemplatePreviewList extends PureComponent {
autoHeight={true}
maxHeight={this.resultsListHeight}
>
- {items.map(item => (
+ {items.map((item, i) => (