diff --git a/components/form/checkbox-multiple-select/CheckboxMultipleSelect.es6.js b/components/form/checkbox-multiple-select/CheckboxMultipleSelect.es6.js
index b98cb14..7eb18fb 100644
--- a/components/form/checkbox-multiple-select/CheckboxMultipleSelect.es6.js
+++ b/components/form/checkbox-multiple-select/CheckboxMultipleSelect.es6.js
@@ -99,8 +99,8 @@ class CheckboxMultipleSelect extends React.Component {
}
{this.state.isOpened && (
- {options.map(option => (
-
+ {options.map((option, index) => (
+
- {units.map(unit => (
-
+ {units.map((unit, index) => (
+
))}
diff --git a/components/form/dimension/DimensionSelect.es6.js b/components/form/dimension/DimensionSelect.es6.js
index b543069..4518d7a 100644
--- a/components/form/dimension/DimensionSelect.es6.js
+++ b/components/form/dimension/DimensionSelect.es6.js
@@ -20,8 +20,8 @@ class DimensionSelect extends React.Component {
onChange={onChange}
search={false}
>
- {choices.map(choice => (
-
+ {choices.map((choice, index) => (
+
))}
diff --git a/components/form/filter-option/FilterOption.es6.js b/components/form/filter-option/FilterOption.es6.js
index add4a28..74b94de 100644
--- a/components/form/filter-option/FilterOption.es6.js
+++ b/components/form/filter-option/FilterOption.es6.js
@@ -44,7 +44,7 @@ class FilterOption extends React.Component {
{filters.map((filter, idx) => (
handleRemoveFilter(idx)}
diff --git a/components/form/filter-option/FilterOptionItem.es6.js b/components/form/filter-option/FilterOptionItem.es6.js
index fdbfd03..1c4b54d 100644
--- a/components/form/filter-option/FilterOptionItem.es6.js
+++ b/components/form/filter-option/FilterOptionItem.es6.js
@@ -59,9 +59,9 @@ class FilterOptionItem extends React.Component {
onChange={fieldName => { handleUpdateFilter({ field_name: fieldName }) }}
placeholder={deslugifiedFieldName}
>
- {filterableFields.map(field => (
+ {filterableFields.map((field, index) => (
@@ -76,7 +76,7 @@ class FilterOptionItem extends React.Component {
>
{validOperators.map((operator, idx) => (
diff --git a/components/form/filter-option/FilterOptionSelect.es6.js b/components/form/filter-option/FilterOptionSelect.es6.js
index 078af68..8309380 100644
--- a/components/form/filter-option/FilterOptionSelect.es6.js
+++ b/components/form/filter-option/FilterOptionSelect.es6.js
@@ -27,9 +27,9 @@ class FilterOptionSelect extends React.Component {
Filter by...
- {filterableFields.map(field => (
+ {filterableFields.map((field, index) => (
onFilterSelect(field)}
>
diff --git a/components/form/select/MiniSelect.es6.js b/components/form/select/MiniSelect.es6.js
index 4dd5fee..2b658e2 100644
--- a/components/form/select/MiniSelect.es6.js
+++ b/components/form/select/MiniSelect.es6.js
@@ -62,9 +62,9 @@ class MiniSelect extends React.Component {
{ this.selectNode = node }}>
{selectValue}
{isOpened &&
- {selectOptions.map(option => (- (
- this.handleSelect(option)}
- key={option}>{option}
))}
+ key={`${option}-${index}`}>{option}))}
}
)
diff --git a/components/layout/list/DragList.es6.js b/components/layout/list/DragList.es6.js
index a042c99..62f69be 100644
--- a/components/layout/list/DragList.es6.js
+++ b/components/layout/list/DragList.es6.js
@@ -37,13 +37,13 @@ class DragList extends React.Component {
const content = typeof child === 'string' ?
{child} : child
return (
{(provided, snapshot) => [
}
{content}
,
- {provided.placeholder}
+ {provided.placeholder}
]}
)
diff --git a/components/layout/nav-indicator/NavIndicator.es6.js b/components/layout/nav-indicator/NavIndicator.es6.js
index 9284554..ac5120c 100644
--- a/components/layout/nav-indicator/NavIndicator.es6.js
+++ b/components/layout/nav-indicator/NavIndicator.es6.js
@@ -13,7 +13,7 @@ function NavIndicator ({ currentStep, totalSteps }) {
(isActive, index) => (
)
)}
diff --git a/components/layout/sidebar/header/QuickActions.es6.js b/components/layout/sidebar/header/QuickActions.es6.js
index 77138ed..7ac05b9 100644
--- a/components/layout/sidebar/header/QuickActions.es6.js
+++ b/components/layout/sidebar/header/QuickActions.es6.js
@@ -18,7 +18,7 @@ function QuickActions ({ actions, onSelect, label }) {
{actions.map(({ icon, text, divider, actionLabel, action, hidden, disabled, onActionSelect }, index) => (
-
+
{actionLabel && }
- {
onButtonClicked(index)
}}
- key={button.label}
+ key={`${button.label}-${index}`}
>{button.label})}
}
)
diff --git a/package.json b/package.json
index c58971f..5273523 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@b12/metronome",
- "version": "1.1.20",
+ "version": "1.1.21",
"description": "",
"main": "index.es6.js",
"scripts": {
diff --git a/styleguide/components/ComponentList.es6.js b/styleguide/components/ComponentList.es6.js
index d37013a..3e36b74 100644
--- a/styleguide/components/ComponentList.es6.js
+++ b/styleguide/components/ComponentList.es6.js
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react'
const ComponentListSection = ({
- href,
+ href,
visibleName,
content,
selected
@@ -31,8 +31,8 @@ const ComponentList = ({
}) => {
return (
- {items.map(item => (
-
+ {items.map((item, index) => (
+
))}
)
diff --git a/styleguide/components/PropsTable.es6.js b/styleguide/components/PropsTable.es6.js
index 75cd08d..1de3937 100644
--- a/styleguide/components/PropsTable.es6.js
+++ b/styleguide/components/PropsTable.es6.js
@@ -12,8 +12,8 @@ const PropsTable = ({ columns, rows, getRowKey }) => {
- {columns.map(({ caption }) => (
-
+ {columns.map(({ caption }, index) => (
+
{caption}
))}
@@ -23,9 +23,9 @@ const PropsTable = ({ columns, rows, getRowKey }) => {
{rows.map(row => (
{columns.map(({ render }, index) => (
- {render(row)}
+ {render(row)}
))}
-
+
))}