We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba7adf commit c7f7655Copy full SHA for c7f7655
src/components/ChartUPlot.tsx
@@ -176,7 +176,7 @@ const ChartUPlot = forwardRef<any, UPlotProps>(
176
const { width, height } = useWindowDimensions();
177
let webref: any = useRef(null);
178
const uplotInstance = useRef<any>(null);
179
- const dataRef = useRef(data);
+ const dataRef = useRef<number[][]>(data as number[][]);
180
const initialized = useRef(false);
181
182
const bgColor = style?.backgroundColor || 'transparent';
@@ -387,7 +387,7 @@ const ChartUPlot = forwardRef<any, UPlotProps>(
387
return;
388
}
389
390
- window[name] = value;
+ (window as any)[name] = value;
391
} else {
392
if (!webref) {
393
console.error('WebView reference is not set');
0 commit comments