diff --git a/controlpanel/api/util/config-validator.js b/controlpanel/api/util/config-validator.js index f105dc1..7bc7a65 100644 --- a/controlpanel/api/util/config-validator.js +++ b/controlpanel/api/util/config-validator.js @@ -5,7 +5,7 @@ function validateConfig(config) { if (typeof config != 'object') return ["config must be a json"]; const errors = []; if (config.alert) errors.push(...validateAlert(config.alert)); - if (config.respond.length) { + if (config.respond && config.respond.length) { for (const respondItem of config.respond) { errors.push(...validateRespond(respondItem)) }