Explorar o código

build: fixed lint issue

Torkel Ödegaard %!s(int64=8) %!d(string=hai) anos
pai
achega
fdb217c283
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      public/app/features/dashboard/dashboard_migration.ts

+ 0 - 3
public/app/features/dashboard/dashboard_migration.ts

@@ -387,7 +387,6 @@ export class DashboardMigrator {
     const showRows = _.some(old.rows, (row) => row.collapse || row.showTitle);
 
     for (let row of old.rows) {
-      let xPos = 0;
       let height: any = row.height || DEFAULT_ROW_HEIGHT;
       const rowGridHeight = getGridHeight(height);
 
@@ -420,8 +419,6 @@ export class DashboardMigrator {
 
         delete panel.span;
 
-        xPos += panel.gridPos.w;
-
         if (rowPanelModel && rowPanel.collapsed) {
           rowPanelModel.panels.push(panel);
         } else {