mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed exception when notifying a device from a domain that does not exist.
This commit is contained in:
parent
3c03bd3b07
commit
c33cc21350
2 changed files with 9 additions and 2 deletions
|
@ -2176,7 +2176,8 @@ function CreateMeshCentralServer(config, args) {
|
|||
const meshSplit = meshid.split('/');
|
||||
if (meshSplit.length != 3) return;
|
||||
const domainId = meshSplit[1];
|
||||
const mailserver = obj.config.domains[domainId].mailserver;;
|
||||
if (obj.config.domains[domainId] == null) return;
|
||||
const mailserver = obj.config.domains[domainId].mailserver;
|
||||
if (mailserver == null) return;
|
||||
|
||||
// Get the device group for this device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue