From 69281eb3f1f41d7fbae55c25efdca6338e22606a Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 22 Nov 2024 09:50:02 +0800 Subject: [PATCH] update network request with correct params --- Client/src/Pages/Infrastructure/Details/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Client/src/Pages/Infrastructure/Details/index.jsx b/Client/src/Pages/Infrastructure/Details/index.jsx index 5f3ec7f77..5f08d71e1 100644 --- a/Client/src/Pages/Infrastructure/Details/index.jsx +++ b/Client/src/Pages/Infrastructure/Details/index.jsx @@ -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) {