From b918f4435205847db2ec63f38347e0778cabf534 Mon Sep 17 00:00:00 2001 From: wangyun Date: Wed, 13 Jun 2018 13:14:44 +0800 Subject: [PATCH] fix error in workplace #1660 --- src/components/Charts/Radar/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Charts/Radar/index.js b/src/components/Charts/Radar/index.js index 8489ff0c..64c51a65 100644 --- a/src/components/Charts/Radar/index.js +++ b/src/components/Charts/Radar/index.js @@ -31,6 +31,7 @@ export default class Radar extends Component { getLegendData = () => { if (!this.chart) return; const geom = this.chart.getAllGeoms()[0]; // 获取所有的图形 + if (!geom) return; const items = geom.get('dataArray') || []; // 获取图形对应的 const legendData = items.map(item => { -- GitLab