From a9667ed204b984fa5a3036d0339468575186a5c5 Mon Sep 17 00:00:00 2001 From: Piotr Jurkiewicz Date: Wed, 21 Aug 2024 01:44:33 +0200 Subject: [PATCH] Fix svgProps.stylePathUtilization null deference --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0360c26..c91864c 100644 --- a/index.html +++ b/index.html @@ -596,7 +596,8 @@

Topology properties

svgProps.originalStrokeWidth = parseFloat(svgProps.stylePath.style.strokeWidth); svgProps.originalCircleRadius = parseFloat(svgProps.styleCircle.style.r); svgProps.originalFontSize = parseFloat(svgProps.styleText.style.fontSize); - svgProps.stylePathUtilization.style.fontSize = `${svgProps.originalStrokeWidth}px`; + if (svgProps.stylePathUtilization) + svgProps.stylePathUtilization.style.fontSize = `${svgProps.originalStrokeWidth}px`; svgProperties = svgProps; }