We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d685bc + a953f06 commit d776eb0Copy full SHA for d776eb0
1 file changed
src/createPlot.tsx
@@ -291,7 +291,7 @@ function createPlot<IPlotConfig extends Record<string, any>>(
291
}
292
293
return () => {
294
- resizeObserver.current && resizeObserver.current.unobserve(container.current)
+ resizeObserver.current && container.current && resizeObserver.current.unobserve(container.current)
295
};
296
}, [container.current, isAutoFit])
297
0 commit comments