Skip to content

Commit

Permalink
Merge pull request #1142 from getredash/random
Browse files Browse the repository at this point in the history
Fix: dates in filters might be duplicated
  • Loading branch information
arikfr authored Jun 19, 2016
2 parents 8df822e + 1933995 commit 7445972
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rd_ui/app/scripts/services/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,13 @@
});

_.each(filters, function(filter) {
filter.values = _.uniq(filter.values);
filter.values = _.uniq(filter.values, function(v) {
if (moment.isMoment(v)) {
return v.unix();
} else {
return v;
}
});
});

this.filters = filters;
Expand Down

0 comments on commit 7445972

Please sign in to comment.