update network request with correct params
This commit is contained in:
1 parent
ec1563bba2
commit
69281eb3f1
1 file changed
+4
-4
@@ -169,7 +169,7 @@ const InfrastructureDetails = () => {
|
|||||||
];
|
];
|
||||||
const [monitor, setMonitor] = useState(null);
|
const [monitor, setMonitor] = useState(null);
|
||||||
const { authToken } = useSelector((state) => state.auth);
|
const { authToken } = useSelector((state) => state.auth);
|
||||||
const [dateRange, setDateRange] = useState("day");
|
const [dateRange, setDateRange] = useState("all");
|
||||||
const { statusColor, determineState } = useUtils();
|
const { statusColor, determineState } = useUtils();
|
||||||
// These calculations are needed because ResponsiveContainer
|
// These calculations are needed because ResponsiveContainer
|
||||||
// doesn't take padding of parent/siblings into account
|
// doesn't take padding of parent/siblings into account
|
||||||
@@ -189,11 +189,11 @@ const InfrastructureDetails = () => {
|
|||||||
const response = await networkService.getStatsByMonitorId({
|
const response = await networkService.getStatsByMonitorId({
|
||||||
authToken: authToken,
|
authToken: authToken,
|
||||||
monitorId: monitorId,
|
monitorId: monitorId,
|
||||||
sortOrder: null,
|
sortOrder: "asc",
|
||||||
limit: null,
|
limit: null,
|
||||||
dateRange: dateRange,
|
dateRange: dateRange,
|
||||||
numToDisplay: 50,
|
numToDisplay: null,
|
||||||
normalize: true,
|
normalize: false,
|
||||||
});
|
});
|
||||||
setMonitor(response.data.data);
|
setMonitor(response.data.data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user