Skip to content

Commit

Permalink
Remove useless callback when processing a select parameter
Browse files Browse the repository at this point in the history
fixes #371
  • Loading branch information
Marta Gómez Macías committed Apr 16, 2019
1 parent 26cf869 commit a36f4b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helpers/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ exports.select_param_to_json = function (select_param){
var select = {"fields": []};

if (typeof select_param == 'string') {
select_param.split(',').map(function(x) {
select['fields'].push(x);
});
select['fields'] = select_param.split(',');
} else {
select['fields'] = select_param;
}
Expand Down

0 comments on commit a36f4b2

Please sign in to comment.