Set default order to 'desc' in time tables (https://github.com/woocommerce/woocommerce-admin/pull/1341)
This commit is contained in:
parent
5dcea1af6f
commit
059cd0ef0d
|
@ -262,7 +262,7 @@ export default compose(
|
|||
|
||||
const tableQuery = {
|
||||
orderby: query.orderby || 'date',
|
||||
order: query.order || 'asc',
|
||||
order: query.order || 'desc',
|
||||
page: query.page || 1,
|
||||
per_page: query.per_page || QUERY_DEFAULTS.pageSize,
|
||||
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),
|
||||
|
|
|
@ -222,7 +222,7 @@ export default compose(
|
|||
const tableQuery = {
|
||||
interval: 'day',
|
||||
orderby: query.orderby || 'date',
|
||||
order: query.order || 'asc',
|
||||
order: query.order || 'desc',
|
||||
page: query.page || 1,
|
||||
per_page: query.per_page || QUERY_DEFAULTS.pageSize,
|
||||
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),
|
||||
|
|
|
@ -320,7 +320,7 @@ export function getReportTableQuery( endpoint, urlQuery, query ) {
|
|||
|
||||
return {
|
||||
orderby: urlQuery.orderby || 'date',
|
||||
order: urlQuery.order || 'asc',
|
||||
order: urlQuery.order || 'desc',
|
||||
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),
|
||||
before: appendTimestamp( datesFromQuery.primary.before, 'end' ),
|
||||
page: urlQuery.page || 1,
|
||||
|
|
Loading…
Reference in New Issue