diff --git a/route/task/edit.js b/route/task/edit.js index aef3960..bae572b 100644 --- a/route/task/edit.js +++ b/route/task/edit.js @@ -13,7 +13,7 @@ // You should have received a copy of the GNU General Public License // along with Pa11y Dashboard. If not, see . -/*jshint maxcomplexity:10*/ +/*jshint maxcomplexity:12*/ 'use strict'; @@ -72,6 +72,9 @@ function route(app) { return Boolean(action); }); } + if (!req.body.actions) { + req.body.actions = []; + } req.body.username = req.body.username || undefined; req.body.password = req.body.password || undefined; req.body.hideElements = req.body.hideElements || undefined;