DashboardList: Fix issue not re-fetching dashboard list after variable change (#36591)

card-internal-spacing
Torkel Ödegaard 4 years ago committed by GitHub
parent e1358eeb76
commit c7d2d70799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/features/dashboard/dashgrid/PanelChrome.tsx

@ -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…
Cancel
Save