From 488504c3fd7488cf05492072bec08e09534e6bac Mon Sep 17 00:00:00 2001 From: Bas Wieringa Date: Fri, 15 Mar 2024 16:18:34 +0100 Subject: [PATCH] Fix input of the statusOfLastHeartbeat function --- src/components/PublicGroupList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/PublicGroupList.vue b/src/components/PublicGroupList.vue index 77b543c2..9cdf7abd 100644 --- a/src/components/PublicGroupList.vue +++ b/src/components/PublicGroupList.vue @@ -190,11 +190,11 @@ export default { /** * Returns the status of the last heartbeat - * @param {object} monitor Monitor to get status for + * @param {number} monitorId Id of the monitor to get status for * @returns {number} Status of the last heartbeat */ - statusOfLastHeartbeat(monitor) { - let heartbeats = this.$root.heartbeatList[this.monitorId] ?? []; + statusOfLastHeartbeat(monitorId) { + let heartbeats = this.$root.heartbeatList[monitorId] ?? []; let lastHeartbeat = heartbeats[heartbeats.length - 1]; return lastHeartbeat?.status; },