update network request with correct params

This commit is contained in:
Alex Holliday committed 2024-11-22 09:50:02 +08:00
1 parent ec1563bba2
commit 69281eb3f1
1 file changed
+4 -4
@@ -169,7 +169,7 @@ const InfrastructureDetails = () => {
];
const [monitor, setMonitor] = useState(null);
const { authToken } = useSelector((state) => state.auth);
const [dateRange, setDateRange] = useState("day");
const [dateRange, setDateRange] = useState("all");
const { statusColor, determineState } = useUtils();
// These calculations are needed because ResponsiveContainer
// doesn't take padding of parent/siblings into account
@@ -189,11 +189,11 @@ const InfrastructureDetails = () => {
const response = await networkService.getStatsByMonitorId({
authToken: authToken,
monitorId: monitorId,
sortOrder: null,
sortOrder: "asc",
limit: null,
dateRange: dateRange,
numToDisplay: 50,
normalize: true,
numToDisplay: null,
normalize: false,
});
setMonitor(response.data.data);
} catch (error) {