update sorting on table Products

This commit is contained in:
Wikzyy
2025-04-11 17:32:11 +07:00
parent 1674aeed85
commit def9ab12a6

View File

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