فهرست منبع

wip: panel-header: On panel refresh, get new timeRange from timeSrv, not the old one from the state

Johannes Schill 7 سال پیش
والد
کامیت
6d4d7c5032
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      public/app/features/dashboard/dashgrid/PanelChrome.tsx

+ 1 - 2
public/app/features/dashboard/dashgrid/PanelChrome.tsx

@@ -67,10 +67,9 @@ export class PanelChrome extends PureComponent<Props, State> {
       return;
     }
 
-    const { timeRange } = this.state;
     const { panel } = this.props;
+    const timeRange = this.timeSrv.timeRange();
     const timeData = applyPanelTimeOverrides(panel, timeRange);
-
     const resolution = getResolution(panel);
     const interval = calculateInterval(panel, panel.datasource, timeData.timeRange, resolution);