From ebc2f9e4fc470f571e9b3b704762b46dfb1f4885 Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:09:03 +0100 Subject: [PATCH] Grafana-UI: Fix TimeSeries not updating when timeZone is changed (#46728) --- packages/grafana-ui/src/components/GraphNG/GraphNG.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx index 1581c4abd34..9758bfcb61a 100755 --- a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx +++ b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx @@ -216,7 +216,7 @@ export class GraphNG extends React.Component { 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) {