fix setRowsPerPage
This commit is contained in:
1 parent
56c5ad419a
commit
30631d6ff8
1 file changed
+4
-3
@@ -98,7 +98,7 @@ const UptimeMonitorsPage = () => {
|
|||||||
} = useGet<MonitorsWithChecksResponse>(
|
} = useGet<MonitorsWithChecksResponse>(
|
||||||
monitorsWithChecksUrl,
|
monitorsWithChecksUrl,
|
||||||
{},
|
{},
|
||||||
{ refreshInterval: 5000 }
|
{ refreshInterval: 10000 }
|
||||||
);
|
);
|
||||||
|
|
||||||
const { monitors: monitorsWithChecks, summary, count } = monitorsWithChecksData ?? {};
|
const { monitors: monitorsWithChecks, summary, count } = monitorsWithChecksData ?? {};
|
||||||
@@ -168,10 +168,11 @@ const UptimeMonitorsPage = () => {
|
|||||||
setSortField={setSortField}
|
setSortField={setSortField}
|
||||||
sortOrder={sortOrder}
|
sortOrder={sortOrder}
|
||||||
setSortOrder={setSortOrder}
|
setSortOrder={setSortOrder}
|
||||||
setRowsPerPage={(e: any) => {
|
setRowsPerPage={(rowsPerPage: number) => {
|
||||||
|
console.log("wtf");
|
||||||
dispatch(
|
dispatch(
|
||||||
setRowsPerPage({
|
setRowsPerPage({
|
||||||
value: parseInt(e.target.value, 10),
|
value: rowsPerPage,
|
||||||
table: "monitors",
|
table: "monitors",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user