Skip to content

Commit

Permalink
Fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Dec 12, 2018
1 parent 2905641 commit d2e508e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions webapp/src/js/controllers/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,10 @@ angular
});
};

var query = function(options) {
options = _.defaults(options || {}, {
limit: 50,
hydrateContactNames: true,
});
var query = function(opts) {
const options = Object.assign({}, opts);
options.limit = options.limit || 50;
options.hydrateContactNames = 'hydrateContactNames' in options ? !!options.hydrateContactNames : true;
if (!options.silent) {
$scope.error = false;
$scope.errorSyntax = false;
Expand Down

0 comments on commit d2e508e

Please sign in to comment.