mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Fix task editing when no actions are specified (#178)
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/*jshint maxcomplexity:10*/
|
/*jshint maxcomplexity:12*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -72,6 +72,9 @@ function route(app) {
|
|||||||
return Boolean(action);
|
return Boolean(action);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!req.body.actions) {
|
||||||
|
req.body.actions = [];
|
||||||
|
}
|
||||||
req.body.username = req.body.username || undefined;
|
req.body.username = req.body.username || undefined;
|
||||||
req.body.password = req.body.password || undefined;
|
req.body.password = req.body.password || undefined;
|
||||||
req.body.hideElements = req.body.hideElements || undefined;
|
req.body.hideElements = req.body.hideElements || undefined;
|
||||||
|
Reference in New Issue
Block a user