add optional key parameter to column

This commit is contained in:
Wlad Meixner 2020-01-13 10:32:11 +01:00
parent ae4f503b30
commit 2cd5d65db1

View File

@ -48,7 +48,7 @@ const Header = (props) => {
return ( return (
<HeaderCell <HeaderCell
index={ i } index={ i }
key={ column.dataField } key={ column.key ? column.key : column.dataField }
column={ column } column={ column }
onSort={ onSort } onSort={ onSort }
sorting={ currSort } sorting={ currSort }