update sorting desc on table Products

This commit is contained in:
Wikzyy
2025-04-11 17:33:27 +07:00
parent baec63aa31
commit df67b681bb

View File

@ -280,7 +280,7 @@ const ManageProductsContextProvider = ({ children }: { children: React.ReactNode
pagination={{ size: 10 }}
toolbar={<ListToolbar />}
layout={{ card: true }}
sorting={[{ id: 'Product.created_at', desc: false }]}
sorting={[{ id: 'Product.created_at', desc: true }]}
serverSide={true}
onFetchData={({ pageIndex, pageSize, sorting, columnFilters }) =>
getProductsLists(pageIndex, pageSize, sorting, columnFilters)