Browse Source

fix single gauge

Peter Holmberg 6 năm trước cách đây
mục cha
commit
d8f1e99249

+ 1 - 1
public/app/plugins/panel/gauge/GaugePanel.tsx

@@ -71,7 +71,7 @@ export class GaugePanel extends PureComponent<Props> {
     const { options, width, height } = this.props;
     const { options, width, height } = this.props;
 
 
     return (
     return (
-      <div className="singlestat-panel">{this.renderGauge(timeSeries.stats[options.stat], width, height, theme)}</div>
+      <div className="singlestat-panel">{this.renderGauge(timeSeries[0].stats[options.stat], width, height, theme)}</div>
     );
     );
   }
   }