Skip to content

Commit

Permalink
🐛fix validator when saving global config
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Dec 13, 2024
1 parent 7af9ffb commit d842082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlpanel/api/util/config-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit d842082

Please sign in to comment.