fix: Sort orders by created_at desc (#7706)
This commit is contained in:
1 parent
41528ddecf
commit
f138339cbc
1 file changed
+2
@@ -34,6 +34,7 @@ export const useOrderTableQuery = ({
|
|||||||
payment_status,
|
payment_status,
|
||||||
region_id,
|
region_id,
|
||||||
q,
|
q,
|
||||||
|
order,
|
||||||
} = queryObject
|
} = queryObject
|
||||||
|
|
||||||
const searchParams: AdminGetOrdersParams = {
|
const searchParams: AdminGetOrdersParams = {
|
||||||
@@ -45,6 +46,7 @@ export const useOrderTableQuery = ({
|
|||||||
created_at: created_at ? JSON.parse(created_at) : undefined,
|
created_at: created_at ? JSON.parse(created_at) : undefined,
|
||||||
updated_at: updated_at ? JSON.parse(updated_at) : undefined,
|
updated_at: updated_at ? JSON.parse(updated_at) : undefined,
|
||||||
region_id: region_id?.split(","),
|
region_id: region_id?.split(","),
|
||||||
|
order: order ? order : "-display_id",
|
||||||
q,
|
q,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user