DashboardList: Fix issue not re-fetching dashboard list after variable change (#36591)
This commit is contained in:
@@ -250,9 +250,10 @@ export class PanelChrome extends Component<Props, State> {
|
|||||||
panel.runAllPanelQueries(this.props.dashboard.id, this.props.dashboard.getTimezone(), timeData, width);
|
panel.runAllPanelQueries(this.props.dashboard.id, this.props.dashboard.getTimezone(), timeData, width);
|
||||||
} else {
|
} else {
|
||||||
// The panel should render on refresh as well if it doesn't have a query, like clock panel
|
// The panel should render on refresh as well if it doesn't have a query, like clock panel
|
||||||
this.setState((prevState) => ({
|
this.setState({
|
||||||
data: { ...prevState.data, timeRange: this.timeSrv.timeRange() },
|
data: { ...this.state.data, timeRange: this.timeSrv.timeRange() },
|
||||||
}));
|
renderCounter: this.state.renderCounter + 1,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user