// see if toggle is on and update params
_.each(keys, function (key) {
_.each(actTypes[key], function (obj) {
- if (that.$[_namify(obj)].getValue()) {
+ // the pluralize function in _namify is imperfect
+ if (that.$[_namify(obj)] && that.$[_namify(obj)].getValue()) {
value.push(obj.type);
}
});