mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove logging
This commit is contained in:
parent
658f419cab
commit
78a9243721
@ -86,9 +86,9 @@ export function calculateStats(options: CalculateStatsOptions): ColumnStats {
|
|||||||
// This lets the concrete implementations assume at least one row
|
// This lets the concrete implementations assume at least one row
|
||||||
if (!table.rows || table.rows.length < 1) {
|
if (!table.rows || table.rows.length < 1) {
|
||||||
const stats = {} as ColumnStats;
|
const stats = {} as ColumnStats;
|
||||||
queue.forEach(stat => {
|
for (const stat of queue) {
|
||||||
stats[stat.id] = stat.emptyInputResult !== null ? stat.emptyInputResult : null;
|
stats[stat.id] = stat.emptyInputResult !== null ? stat.emptyInputResult : null;
|
||||||
});
|
}
|
||||||
return stats;
|
return stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,6 @@ export class DashboardPanel extends PureComponent<Props, State> {
|
|||||||
const hook = plugin.exports.reactPanel.panelTypeChangedHook;
|
const hook = plugin.exports.reactPanel.panelTypeChangedHook;
|
||||||
if (hook) {
|
if (hook) {
|
||||||
panel.options = hook(panel.options || {}, null, null);
|
panel.options = hook(panel.options || {}, null, null);
|
||||||
console.log('OPITONS', pluginId, panel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ export class SingleStatValueEditor extends PureComponent<Props> {
|
|||||||
onUnitChange = unit => this.props.onChange({ ...this.props.options, unit: unit.value });
|
onUnitChange = unit => this.props.onChange({ ...this.props.options, unit: unit.value });
|
||||||
|
|
||||||
onStatsChange = stats => {
|
onStatsChange = stats => {
|
||||||
console.log('SELECTED', stats);
|
|
||||||
const stat = stats[0] || StatID.mean;
|
const stat = stats[0] || StatID.mean;
|
||||||
this.props.onChange({ ...this.props.options, stat });
|
this.props.onChange({ ...this.props.options, stat });
|
||||||
};
|
};
|
||||||
@ -48,8 +47,6 @@ export class SingleStatValueEditor extends PureComponent<Props> {
|
|||||||
decimalsString = decimals.toString();
|
decimalsString = decimals.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('xxx', stat);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PanelOptionsGroup title="Value">
|
<PanelOptionsGroup title="Value">
|
||||||
<div className="gf-form">
|
<div className="gf-form">
|
||||||
|
Loading…
Reference in New Issue
Block a user