mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DashboardList: Fix issue not re-fetching dashboard list after variable change (#36591)
This commit is contained in:
parent
e1358eeb76
commit
c7d2d70799
@ -250,9 +250,10 @@ export class PanelChrome extends Component<Props, State> {
|
||||
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,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user