tech(lodash): began migration work

This commit is contained in:
Torkel Ödegaard
2016-09-13 22:10:44 +02:00
parent 2146e69a11
commit 0fa0066cd9
35 changed files with 62 additions and 6854 deletions

View File

@@ -112,7 +112,7 @@ class DashListCtrl extends PanelCtrl {
return Promise.resolve();
}
var dashIds = _.first(impressions.getDashboardOpened(), this.panel.limit);
var dashIds = _.take(impressions.getDashboardOpened(), this.panel.limit);
return this.backendSrv.search({dashboardIds: dashIds, limit: this.panel.limit}).then(result => {
this.groups[1].list = dashIds.map(orderId => {
return _.find(result, dashboard => {