@evergis/react 2.0.58 → 2.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3053,7 +3053,7 @@ function useSymbol(_ref, canvasRef) {
|
|
|
3053
3053
|
maxWidth
|
|
3054
3054
|
} = _ref;
|
|
3055
3055
|
React.useEffect(() => {
|
|
3056
|
-
if (canvasRef.current !== null) {
|
|
3056
|
+
if (canvasRef.current !== null && symbol !== undefined) {
|
|
3057
3057
|
const canvas = canvasRef.current;
|
|
3058
3058
|
setCanvasSize(canvas, size, maxWidth);
|
|
3059
3059
|
render(symbol, size).then(renders => {
|