essence-data-table
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -151,6 +151,5 @@ 'use strict'; | ||
value: function renderSortIcon(index) { | ||
if (this.state.sortIcon[index]) { | ||
return _react2.default.createElement('span', { key: 'sort-icon-' + index, className: 'e-icon-' + this.state.sortIcon[index] || '' }); | ||
} | ||
return; | ||
var icon = this.state.sortIcon[index] || ''; | ||
return _react2.default.createElement('span', { key: 'sort-icon-' + (index || ''), className: 'e-icon-' + icon }); | ||
} | ||
@@ -173,3 +172,3 @@ }, { | ||
}, | ||
[self.renderSortIcon(index), arr.name] | ||
[index === 0 ? null : self.renderSortIcon(index), arr.name] | ||
); | ||
@@ -176,0 +175,0 @@ }); |
{ | ||
"name": "essence-data-table", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Essence Data Table - Data Table component.", | ||
@@ -5,0 +5,0 @@ "author": "Hetmann W. Iohan <wilhelm.hetmann@evozon.com>", |
@@ -100,6 +100,5 @@ import React from 'react'; | ||
renderSortIcon(index) { | ||
if (this.state.sortIcon[index]) { | ||
return (<span key={'sort-icon-' + index} className={'e-icon-' + this.state.sortIcon[index] || ''} />); | ||
} | ||
return; | ||
let icon = this.state.sortIcon[index] || ''; | ||
return (<span key={'sort-icon-' + (index || '')} className={'e-icon-' + icon} />); | ||
} | ||
@@ -120,3 +119,6 @@ | ||
> | ||
{[self.renderSortIcon(index), arr.name]} | ||
{[ | ||
(index === 0 ? null : self.renderSortIcon(index)), | ||
arr.name | ||
]} | ||
</DataTableColumn> | ||
@@ -123,0 +125,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50887
908