diff --git a/web/js/Map.js b/web/js/Map.js index 7e03c12157..1248dae6f5 100644 --- a/web/js/Map.js +++ b/web/js/Map.js @@ -70,13 +70,14 @@ var ZMMap = function() { key: 'addMonitors', value: function addMonitors() { const server = new Server(Servers[serverId]); - const get_monitors_promise = server.getFromApi('/monitors/Deleted:0.json'); + const get_monitors_promise = server.getFromApi('/monitors/index/Deleted:0.json'); get_monitors_promise .then((response) => { return response.json(); }) .then((monitors) => { console.log(monitors); + if (!monitors.monitors) return; let cant_connected = 0; let cant_disconnected = 0;