mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
Graph NG: Invalidate uPlot config on timezone changes (#29531)
This commit is contained in:
parent
2a61d7ff9f
commit
974233bf81
@ -160,7 +160,7 @@ export const GraphNG: React.FC<GraphNGProps> = ({
|
||||
|
||||
legendItemsRef.current = legendItems;
|
||||
return builder;
|
||||
}, [configRev]);
|
||||
}, [configRev, timeZone]);
|
||||
|
||||
if (alignedFrameWithGapTest == null) {
|
||||
return (
|
||||
|
@ -105,7 +105,6 @@ export const DEFAULT_PLOT_CONFIG = {
|
||||
hooks: {},
|
||||
};
|
||||
|
||||
//pass plain confsig object,memoize!
|
||||
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
|
||||
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
|
||||
const [isConfigReady, setIsConfigReady] = useState(false);
|
||||
|
Loading…
Reference in New Issue
Block a user