From 0282de064230ef870336fa2e7d16e0b22b6e9e7f Mon Sep 17 00:00:00 2001 From: wisonic-s <51065359+wisonic-s@users.noreply.github.com> Date: Mon, 17 Mar 2025 14:30:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=9C=A8=E9=83=A8=E5=88=86=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E4=B8=8A=E6=8F=90=E7=A4=BA=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=20(#15362)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/map/map.ts | 3 +++ .../src/views/chart/components/js/panel/common/common_antv.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts index d939f8aae1..55e1e929ee 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts @@ -568,6 +568,9 @@ export class Map extends L7PlotChartView { return result } const head = originalItem.properties + if (!head) { + return result + } const { adcode } = head const areaName = subAreaMap['156' + adcode] const valItem = areaMap[areaName] diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 74279e0152..51c43e58a9 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1003,6 +1003,9 @@ export function configL7Tooltip(chart: Chart): TooltipOptions { return result } const head = originalItem.properties + if (!head) { + return result + } const formatter = formatterMap[head.quotaList?.[0]?.id] if (!isEmpty(formatter)) { const originValue = parseFloat(head.value as string)