Merge pull request #1038 from chaotixkilla/fix-customer-list-sorting
Fix customer list sorting
This commit is contained in:
commit
cfb360ab4e
1 changed files with 3 additions and 3 deletions
|
|
@ -80,9 +80,9 @@ const Customers = () => {
|
|||
|
||||
const configData = R.path(['config'])(customersResponse) ?? []
|
||||
const locale = configData && fromNamespace(namespaces.LOCALE, configData)
|
||||
const customersData = R.sortWith([R.descend(R.prop('lastActive'))])(
|
||||
filteredCustomers ?? []
|
||||
)
|
||||
const customersData = R.sortWith([
|
||||
R.descend(it => new Date(R.prop('lastActive', it) ?? '0'))
|
||||
])(filteredCustomers ?? [])
|
||||
|
||||
const onFilterChange = filters => {
|
||||
const filtersObject = getFiltersObj(filters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue