Add sort order and field to request
This commit is contained in:
1 parent
98f12d28a3
commit
354b0fd92f
1 file changed
+2
-2
@@ -156,8 +156,8 @@ const MonitorTable = ({ isAdmin }) => {
|
|||||||
page: page,
|
page: page,
|
||||||
rowsPerPage: rowsPerPage,
|
rowsPerPage: rowsPerPage,
|
||||||
filter: null,
|
filter: null,
|
||||||
field: null,
|
field: sort.field,
|
||||||
order: null,
|
order: sort.order,
|
||||||
});
|
});
|
||||||
setMonitors(res?.data?.data?.monitors ?? []);
|
setMonitors(res?.data?.data?.monitors ?? []);
|
||||||
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
|
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
|
||||||
|
|||||||
Reference in new issue
Block a user