diff --git a/public/app/features/dashboard/dashgrid/PanelChrome.tsx b/public/app/features/dashboard/dashgrid/PanelChrome.tsx index ab6f5e3c3b2..79af541769a 100644 --- a/public/app/features/dashboard/dashgrid/PanelChrome.tsx +++ b/public/app/features/dashboard/dashgrid/PanelChrome.tsx @@ -67,10 +67,9 @@ export class PanelChrome extends PureComponent { 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);