AnnoListPanel: Fix 'Within Time Range' option (#32439)

This commit is contained in:
kay delaney
2021-04-13 16:55:55 +01:00
committed by GitHub
parent 8a1431b472
commit 12ceff407b
@@ -209,7 +209,9 @@ export class PanelChrome extends Component<Props, State> {
});
} else {
// The panel should render on refresh as well if it doesn't have a query, like clock panel
this.onRender();
this.setState((prevState) => ({
data: { ...prevState.data, timeRange: this.timeSrv.timeRange() },
}));
}
};