Skip to content

Commit

Permalink
Merge pull request #1133 from thomasleveil/patch-1
Browse files Browse the repository at this point in the history
fix `TypeError: Cannot read property 'id' of null`
  • Loading branch information
louislam authored Jan 6, 2022
2 parents ec5037f + 46fa6a5 commit d4b86dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/notification-providers/google-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
}

Expand Down

0 comments on commit d4b86dc

Please sign in to comment.