remove logging

This commit is contained in:
ryan 2019-03-22 00:21:04 -07:00
parent 658f419cab
commit 78a9243721
3 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);
}
}

View File

@ -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">