implement sorting

This commit is contained in:
Alex Holliday committed 2024-09-18 10:39:47 +08:00
1 parent 7e1a5b6ec8
commit 2d2b101eb7
3 files changed
+23 -3

No files matched your search

@@ -151,7 +151,10 @@ const MonitorTable = ({ isAdmin }) => {
"desc",
true,
page,
rowsPerPage
rowsPerPage,
null,
"createdAt",
"desc"
);
setMonitors(res?.data?.data?.monitors ?? []);
setMonitorCount(res?.data?.data?.monitorCount ?? 0);