♻️(frontend) datagrid ordered by updated_at desc
The datagrid is now ordered by updated_at desc.
This commit is contained in:
@@ -53,7 +53,12 @@ export const DocsGrid = () => {
|
||||
const pagination = usePagination({
|
||||
pageSize: PAGE_SIZE,
|
||||
});
|
||||
const [sortModel, setSortModel] = useState<SortModel>([]);
|
||||
const [sortModel, setSortModel] = useState<SortModel>([
|
||||
{
|
||||
field: 'updated_at',
|
||||
sort: 'desc',
|
||||
},
|
||||
]);
|
||||
const { page, pageSize, setPagesCount } = pagination;
|
||||
const [docs, setDocs] = useState<Doc[]>([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user