mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 15:39:53 -05:00
Final linting fix
This commit is contained in:
parent
a34ca83844
commit
e539e5aa73
@ -193,7 +193,7 @@ export default {
|
|||||||
* @param {number} monitorId Id of the monitor to get status for
|
* @param {number} monitorId Id of the monitor to get status for
|
||||||
* @returns {number} Status of the last heartbeat
|
* @returns {number} Status of the last heartbeat
|
||||||
*/
|
*/
|
||||||
statusOfLastHeartbeat(monitorId) {
|
statusOfLastHeartbeat(monitorId) {
|
||||||
let heartbeats = this.$root.heartbeatList[monitorId] ?? [];
|
let heartbeats = this.$root.heartbeatList[monitorId] ?? [];
|
||||||
let lastHeartbeat = heartbeats[heartbeats.length - 1];
|
let lastHeartbeat = heartbeats[heartbeats.length - 1];
|
||||||
return lastHeartbeat?.status;
|
return lastHeartbeat?.status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user