From 61847c32d9cfcc8970c190617d4d112346237a32 Mon Sep 17 00:00:00 2001 From: Dan Cech Date: Thu, 16 Sep 2021 14:30:01 -0400 Subject: [PATCH] fix typo in #39208 causing "plot is undefined" error (#39304) --- packages/grafana-ui/src/components/uPlot/Plot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/uPlot/Plot.tsx b/packages/grafana-ui/src/components/uPlot/Plot.tsx index 041e4dc9ba2..ffc720708e7 100755 --- a/packages/grafana-ui/src/components/uPlot/Plot.tsx +++ b/packages/grafana-ui/src/components/uPlot/Plot.tsx @@ -115,7 +115,7 @@ export class UPlotChart extends React.Component { // the more expensive, more proper/thorough way to do this is to force all axes to recalc: plot?.redraw(false, true); if (ctx.plot && typeof this.props.data[0][0] === 'string') { //@ts-ignore - plot.axes[0]._values = this.props.data[0]; + ctx.plot.axes[0]._values = this.props.data[0]; } } }