mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -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;
|
legendItemsRef.current = legendItems;
|
||||||
return builder;
|
return builder;
|
||||||
}, [configRev]);
|
}, [configRev, timeZone]);
|
||||||
|
|
||||||
if (alignedFrameWithGapTest == null) {
|
if (alignedFrameWithGapTest == null) {
|
||||||
return (
|
return (
|
||||||
|
@ -105,7 +105,6 @@ export const DEFAULT_PLOT_CONFIG = {
|
|||||||
hooks: {},
|
hooks: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
//pass plain confsig object,memoize!
|
|
||||||
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
|
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
|
||||||
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
|
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
|
||||||
const [isConfigReady, setIsConfigReady] = useState(false);
|
const [isConfigReady, setIsConfigReady] = useState(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user