fix(notification): check for monitorJSON in Stackfield provider (#7248)

pull/7235/head^2
jlbrt 2 weeks ago committed by GitHub
parent a5f30d4cc8
commit 7136dd7832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,7 +25,8 @@ class Stackfield extends NotificationProvider {
const baseURL = await Settings.get("primaryBaseURL");
if (baseURL) {
textMsg += `\n${baseURL + getMonitorRelativeURL(monitorJSON.id)}`;
const urlPath = monitorJSON ? getMonitorRelativeURL(monitorJSON.id) : "/";
textMsg += `\n${baseURL + urlPath}`;
}
const data = {

Loading…
Cancel
Save