fix `TypeError: Cannot read property 'id' of null`

when testing a Google Chat notification

see https://github.com/louislam/uptime-kuma/issues/1126#issuecomment-1006343423
pull/1133/head
Thomas LÉVEIL 3 years ago committed by GitHub
parent ec5037f30d
commit 46fa6a56fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ class GoogleChat extends NotificationProvider {
textMsg += `${msg}`;
const baseURL = await setting("primaryBaseURL");
if (baseURL) {
if (baseURL && monitorJSON) {
textMsg += `\n${baseURL + getMonitorRelativeURL(monitorJSON.id)}`;
}

Loading…
Cancel
Save