diff --git a/controllers/forms/globalactions.js b/controllers/forms/globalactions.js index 3f484d85..913c78c2 100644 --- a/controllers/forms/globalactions.js +++ b/controllers/forms/globalactions.js @@ -16,7 +16,7 @@ module.exports = async (req, res, next) => { res.locals.actions = actionChecker(req); //make sure they have any global actions, and that they only selected global actions - if (es.locals.actions.numGlobal === 0 || res.locals.actions.validActions.length > res.locals.actions.numGlobal) { + if (res.locals.actions.numGlobal === 0 || res.locals.actions.validActions.length > res.locals.actions.numGlobal) { errors.push('Invalid actions selected'); }