Merge pull request #1133 from thomasleveil/patch-1

fix `TypeError: Cannot read property 'id' of null`
pull/1144/head
Louis Lam 3 years ago committed by GitHub
commit d4b86dc472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save