error fixes
This commit is contained in:
1 parent
4667c59573
commit
658c7c090f
3 files changed
+14
-7
No files matched your search
@@ -7,7 +7,7 @@ import { ChecksTable } from "@/pages/checks/ChecksTable";
|
||||
import { LoadingSpinner } from "@/components/design-elements";
|
||||
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import type { SelectChangeEvent } from "@mui/material/Select";
|
||||
import { useGet } from "@/hooks/UseApi";
|
||||
import type { ApiResponse } from "@/types/api";
|
||||
@@ -46,6 +46,10 @@ const ChecksPage = () => {
|
||||
const checks = checksResponse?.data?.checks || [];
|
||||
const hasMore = checksResponse?.data?.hasMore;
|
||||
|
||||
useEffect(() => {
|
||||
setPage(0);
|
||||
}, [range, status, selectedMonitorId]);
|
||||
|
||||
return (
|
||||
<BasePage>
|
||||
<InfoBox
|
||||
|
||||
@@ -114,7 +114,7 @@ export const ChecksTable = ({
|
||||
/>
|
||||
<Pagination
|
||||
component="div"
|
||||
count={0}
|
||||
count={(page + 1) * rowsPerPage + 1}
|
||||
hasMore={hasMore}
|
||||
page={page}
|
||||
rowsPerPage={rowsPerPage}
|
||||
|
||||
Reference in new issue
Block a user