fix typo in #39208 causing "plot is undefined" error (#39304)

This commit is contained in:
Dan Cech
2021-09-16 14:30:01 -04:00
committed by GitHub
parent 0c4d98def4
commit 61847c32d9
@@ -115,7 +115,7 @@ export class UPlotChart extends React.Component<PlotProps, UPlotChartState> {
// 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];
}
}
}