Sfoglia il codice sorgente

fix(dashlink): improve variable naming

bergquist 10 anni fa
parent
commit
0f546a4692
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      public/app/plugins/panel/dashlist/module.ts

+ 3 - 3
public/app/plugins/panel/dashlist/module.ts

@@ -50,9 +50,9 @@ class DashListCtrl extends PanelCtrl {
         limit: this.panel.limit
         limit: this.panel.limit
       }).then(result => {
       }).then(result => {
 
 
-        this.dashList = dashboardIds.map(e => {
-          return _.find(result, r => {
-            return r.id === e;
+        this.dashList = dashboardIds.map(orderId => {
+          return _.find(result, dashboard => {
+            return dashboard.id === orderId;
           });
           });
         });
         });