diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-14 02:46:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-14 02:46:51 +0100 |
| commit | 8df493f6f9d18acfe5919cf257c2da0d2b30ab7a (patch) | |
| tree | 44c25bebf91a6c7a4aef629bf35f7ab75e82e80e /client/datasetList/datasetList.container.js | |
| parent | 0108392dcf3675f4356164a3f14a4dbb7b40f8cf (diff) | |
copy etc
Diffstat (limited to 'client/datasetList/datasetList.container.js')
| -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' |
