From 98f68cb8d832f6ef17e8d0f181acc3967af0fa75 Mon Sep 17 00:00:00 2001 From: killer1992 Date: Tue, 23 Aug 2022 10:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90sdk=E3=80=91=E3=80=90ui=E3=80=91?= =?UTF-8?q?=E3=80=90=E6=9D=A8=E7=90=A8=E3=80=91=E3=80=90=E8=A7=A3=E5=86=B3?= =?UTF-8?q?BUG1857-SVG=E7=AC=A6=E5=8F=B7=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=E5=9B=BE=E7=89=87=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/plot/SVGSettingPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/plot/SVGSettingPanel.vue b/ui/src/components/plot/SVGSettingPanel.vue index 53099dcfa..15782d71d 100644 --- a/ui/src/components/plot/SVGSettingPanel.vue +++ b/ui/src/components/plot/SVGSettingPanel.vue @@ -445,7 +445,7 @@ export default { this.setG(svg, g); break; } - if(parts[i].getAttribute("id") === this.prevSvg.getAttribute("id")) { + if(parts[i] && this.prevSvg && parts[i].getAttribute("id") === this.prevSvg.getAttribute("id")) { this.removeHighLight(svg.children[svg.children.length - 1]); } }