diff --git a/public/app/features/dashboard/dashgrid/PanelChrome.tsx b/public/app/features/dashboard/dashgrid/PanelChrome.tsx index 64992fccafb..63418eb2eb7 100644 --- a/public/app/features/dashboard/dashgrid/PanelChrome.tsx +++ b/public/app/features/dashboard/dashgrid/PanelChrome.tsx @@ -250,9 +250,10 @@ export class PanelChrome extends Component { panel.runAllPanelQueries(this.props.dashboard.id, this.props.dashboard.getTimezone(), timeData, width); } else { // The panel should render on refresh as well if it doesn't have a query, like clock panel - this.setState((prevState) => ({ - data: { ...prevState.data, timeRange: this.timeSrv.timeRange() }, - })); + this.setState({ + data: { ...this.state.data, timeRange: this.timeSrv.timeRange() }, + renderCounter: this.state.renderCounter + 1, + }); } };