diff --git a/server/model/monitor.js b/server/model/monitor.js index 4049a99..3640c73 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -304,7 +304,7 @@ class Monitor extends BeanModel { let beatInterval = this.interval; - let isImportant = Monitor.isImportantBeat(isFirstBeat, previousBeat.status, bean.status); + let isImportant = Monitor.isImportantBeat(isFirstBeat, previousBeat?.status, bean.status); // Mark as important if status changed, ignore pending pings, // Don't notify if disrupted changes to up