this.selectedRows = [];
this.limit = CRM.cache.get('searchPageSize', 30);
this.page = 1;
- this.displayTypes = _.indexBy(CRM.crmSearchAdmin.displayTypes, 'name');
+ this.displayTypes = _.indexBy(CRM.crmSearchAdmin.displayTypes, 'id');
// After a search this.results is an object of result arrays keyed by page,
// Initially this.results is an empty string because 1: it's falsey (unlike an empty object) and 2: it doesn't throw an error if you try to access undefined properties (unlike null)
this.results = '';