mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 19:54:39 -05:00
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
This commit is contained in:
parent
ec5037f30d
commit
46fa6a56fa
@ -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…
Reference in New Issue
Block a user