diff options
Diffstat (limited to 'client/datasetList')
| -rw-r--r-- | client/datasetList/datasetList.container.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/datasetList/datasetList.container.js b/client/datasetList/datasetList.container.js index 11fb4a5b..f9b2c3b4 100644 --- a/client/datasetList/datasetList.container.js +++ b/client/datasetList/datasetList.container.js @@ -3,11 +3,9 @@ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { toArray } from '../util' -// import DatasetListQuery from './datasetList.query' - const parseTypes = { string: s => s.toLowerCase(), - number: s => parseInt((s || '0').replace(',', '').trim()), + number: s => parseInt((s || '0').replace(/,/g, '').trim()), } const sortTypes = { @@ -48,7 +46,9 @@ class DatasetListContainer extends Component { el, ]) .sort(sortFn) - .map(pair => pair[1]) + // .map(pair => pair[1]) + console.log(els) + els = els.map(pair => pair[1]) if (reversed) els.reverse() if (order.field === 'title') { // displayField = 'year' |
