ryan před 6 roky
rodič
revize
78a9243721

+ 2 - 2
packages/grafana-ui/src/utils/statsCalculator.ts

@@ -86,9 +86,9 @@ export function calculateStats(options: CalculateStatsOptions): ColumnStats {
   // This lets the concrete implementations assume at least one row
   if (!table.rows || table.rows.length < 1) {
     const stats = {} as ColumnStats;
-    queue.forEach(stat => {
+    for (const stat of queue) {
       stats[stat.id] = stat.emptyInputResult !== null ? stat.emptyInputResult : null;
-    });
+    }
     return stats;
   }
 

+ 0 - 1
public/app/features/dashboard/dashgrid/DashboardPanel.tsx

@@ -102,7 +102,6 @@ export class DashboardPanel extends PureComponent<Props, State> {
         const hook = plugin.exports.reactPanel.panelTypeChangedHook;
         if (hook) {
           panel.options = hook(panel.options || {}, null, null);
-          console.log('OPITONS', pluginId, panel);
         }
       }
 

+ 0 - 3
public/app/plugins/panel/singlestat2/SingleStatValueEditor.tsx

@@ -18,7 +18,6 @@ export class SingleStatValueEditor extends PureComponent<Props> {
   onUnitChange = unit => this.props.onChange({ ...this.props.options, unit: unit.value });
 
   onStatsChange = stats => {
-    console.log('SELECTED', stats);
     const stat = stats[0] || StatID.mean;
     this.props.onChange({ ...this.props.options, stat });
   };
@@ -48,8 +47,6 @@ export class SingleStatValueEditor extends PureComponent<Props> {
       decimalsString = decimals.toString();
     }
 
-    console.log('xxx', stat);
-
     return (
       <PanelOptionsGroup title="Value">
         <div className="gf-form">