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 => ( -
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 => ( -
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) => (
) 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)} ))} - + ))}