fix setRowsPerPage

This commit is contained in:
Alex Holliday committed 2026-01-24 16:41:40 +00:00
1 parent 56c5ad419a
commit 30631d6ff8
1 file changed
+4 -3
+4 -3
View File
@@ -98,7 +98,7 @@ const UptimeMonitorsPage = () => {
} = useGet<MonitorsWithChecksResponse>(
monitorsWithChecksUrl,
{},
{ refreshInterval: 5000 }
{ refreshInterval: 10000 }
);
const { monitors: monitorsWithChecks, summary, count } = monitorsWithChecksData ?? {};
@@ -168,10 +168,11 @@ const UptimeMonitorsPage = () => {
setSortField={setSortField}
sortOrder={sortOrder}
setSortOrder={setSortOrder}
setRowsPerPage={(e: any) => {
setRowsPerPage={(rowsPerPage: number) => {
console.log("wtf");
dispatch(
setRowsPerPage({
value: parseInt(e.target.value, 10),
value: rowsPerPage,
table: "monitors",
})
);