export default Controller.extend({
_facetsFromServer: function () {
var facets = Controller.prototype._facetsFromServer.apply(this, arguments) || [];
- facets.push('assigned_to_me');
+ if (facets.indexOf('assignees') !== -1) {
+ facets.push('assigned_to_me');
+ }
return facets;
},
return that.options.app.state.get('transform')[facet] != null ?
that.options.app.state.get('transform')[facet] : facet;
});
+ facets = _.uniq(facets);
return facets.filter(function (facet) {
return that.options.app.state.get('allFacets').indexOf(facet) !== -1;
});