Ver Fonte

fix: ignore upgrading dashboard grid when there are no rows

Torkel Ödegaard há 8 anos atrás
pai
commit
9785e6b630
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      public/app/features/dashboard/DashboardModel.ts

+ 5 - 0
public/app/features/dashboard/DashboardModel.ts

@@ -669,6 +669,11 @@ export class DashboardModel {
     upgradeToGridLayout(old) {
       let yPos = 0;
       //let rowIds = 1000;
+      //
+
+      if (!old.rows) {
+        return;
+      }
 
       for (let row of old.rows) {
         let xPos = 0;