mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: panel-header: On panel refresh, get new timeRange from timeSrv, not the old one from the state
This commit is contained in:
parent
e045169094
commit
6d4d7c5032
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user