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