incidents repo and data reversal
This commit is contained in:
1 parent
605b4713af
commit
51081a6a0e
32 files changed
+537
-241
No files matched your search
@@ -12,7 +12,7 @@ import { useState, useEffect } from "react";
|
||||
import { useGet } from "@/hooks/UseApi";
|
||||
import type { ApiResponse } from "@/types/api";
|
||||
import type { SelectChangeEvent } from "@mui/material/Select";
|
||||
import type { IIncident } from "@/types/incident";
|
||||
import type { IncidentWithDetails } from "@/types/incident";
|
||||
import type { IMonitor } from "@/types/monitor";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
@@ -31,7 +31,7 @@ const IncidentsPage = () => {
|
||||
loading: incidentsLoading,
|
||||
isValidating: incidentsValidating,
|
||||
refetch,
|
||||
} = useGet<ApiResponse<{ count: number; incidents: IIncident[] }>>(
|
||||
} = useGet<ApiResponse<{ count: number; incidents: IncidentWithDetails[] }>>(
|
||||
`/incidents?page=${page}&rowsPerPage=${rowsPerPage}&range=${range}${
|
||||
selectedMonitorId && selectedMonitorId !== "all"
|
||||
? `&monitorId=${selectedMonitorId}`
|
||||
|
||||
Reference in new issue
Block a user