Grafana-UI: Fix TimeSeries not updating when timeZone is changed (#46728)

This commit is contained in:
Joao Silva
2022-03-30 18:09:03 +01:00
committed by GitHub
parent edf384c730
commit ebc2f9e4fc
@@ -216,7 +216,7 @@ export class GraphNG extends React.Component<GraphNGProps, GraphNGState> {
const propsChanged = !sameProps(prevProps, this.props, propsToDiff);
if (frames !== prevProps.frames || propsChanged) {
if (frames !== prevProps.frames || propsChanged || timeZone !== prevProps.timeZone) {
let newState = this.prepState(this.props, false);
if (newState) {