Commit 6d4d7c50 by Johannes Schill

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

parent e0451690
...@@ -67,10 +67,9 @@ export class PanelChrome extends PureComponent<Props, State> { ...@@ -67,10 +67,9 @@ export class PanelChrome extends PureComponent<Props, State> {
return; return;
} }
const { timeRange } = this.state;
const { panel } = this.props; const { panel } = this.props;
const timeRange = this.timeSrv.timeRange();
const timeData = applyPanelTimeOverrides(panel, timeRange); const timeData = applyPanelTimeOverrides(panel, timeRange);
const resolution = getResolution(panel); const resolution = getResolution(panel);
const interval = calculateInterval(panel, panel.datasource, timeData.timeRange, resolution); const interval = calculateInterval(panel, panel.datasource, timeData.timeRange, resolution);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment