Merge pull request #1133 from thomasleveil/patch-1

fix `TypeError: Cannot read property 'id' of null`
This commit is contained in:
Louis Lam
2022-01-06 16:19:36 +08:00
committed by GitHub

View File

@@ -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)}`;
}