feat(admin): change admin order list default sort (#13874)
* ✨ Change admin order list default sort * Create hot-laws-give.md --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
1 parent
47b2f7f888
commit
ac6754f008
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(admin): Change admin order list default sort
|
||||||
@@ -46,7 +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",
|
order: order ? order : "-created_at",
|
||||||
q,
|
q,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user