fetch monitors data from filteredmonitors object to include type data
This commit is contained in:
1 parent
2ccdcdd480
commit
a9ebb8abc1
1 file changed
+3
-1
@@ -137,7 +137,9 @@ const CreateMaintenance = () => {
|
|||||||
limit: null,
|
limit: null,
|
||||||
types: ["http", "ping", "pagespeed"],
|
types: ["http", "ping", "pagespeed"],
|
||||||
});
|
});
|
||||||
const monitors = response.data.data.monitors;
|
console.log(response);
|
||||||
|
const monitors = response.data.data.filteredMonitors; //fetching monitor data from fileterdMonitors
|
||||||
|
console.log(monitors);
|
||||||
setMonitors(monitors);
|
setMonitors(monitors);
|
||||||
|
|
||||||
if (maintenanceWindowId === undefined) {
|
if (maintenanceWindowId === undefined) {
|
||||||
|
|||||||
Reference in new issue
Block a user