Torkel Ödegaard 11 tahun lalu
induk
melakukan
c658189c85
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/app/features/dashboard/dynamicDashboardSrv.js

+ 1 - 1
src/app/features/dashboard/dynamicDashboardSrv.js

@@ -104,7 +104,7 @@ function (angular, _) {
 
         for (i = 0; i < copy.panels.length; i++) {
           panel = row.panels[i];
-          panel.scopedVars = {};
+          panel.scopedVars = panel.scopedVars || {};
           panel.scopedVars[variable.name] = option;
         }
       });