From 5891d467c297cd4c3299be1336d1eb46b4a1e946 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Aug 2024 15:02:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=A0=E9=83=A8=E5=88=86=E6=97=A0=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=A4=A7=E5=B1=8F=E6=88=96=E8=80=85=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E5=89=8D=E7=AB=AF=E6=97=A0=E6=B3=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=BA=94=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/dashboard/DashboardPreviewShow.vue | 2 +- core/core-frontend/src/views/data-visualization/PreviewShow.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/DashboardPreviewShow.vue b/core/core-frontend/src/views/dashboard/DashboardPreviewShow.vue index 23fa2b3260..039e86c4d3 100644 --- a/core/core-frontend/src/views/dashboard/DashboardPreviewShow.vue +++ b/core/core-frontend/src/views/dashboard/DashboardPreviewShow.vue @@ -140,7 +140,7 @@ const checkTemplate = () => { let templateViewNames = ',' Object.keys(canvasViewDataInfo.value).forEach(key => { const viewInfo = canvasViewDataInfo.value[key] - if (viewInfo.dataFrom === 'template') { + if (viewInfo && viewInfo?.dataFrom === 'template') { templateViewNames = templateViewNames + viewInfo.title + ',' } }) diff --git a/core/core-frontend/src/views/data-visualization/PreviewShow.vue b/core/core-frontend/src/views/data-visualization/PreviewShow.vue index d169578e7b..ced6705f6f 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewShow.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewShow.vue @@ -141,7 +141,7 @@ const checkTemplate = () => { let templateViewNames = ',' Object.keys(canvasViewDataInfo.value).forEach(key => { const viewInfo = canvasViewDataInfo.value[key] - if (viewInfo.dataFrom === 'template') { + if (viewInfo && viewInfo?.dataFrom === 'template') { templateViewNames = templateViewNames + viewInfo.title + ',' } })