Merge pull request #604 from dataease/pr@dev@fix_bug-fix

fix:前端cosole报错问题
This commit is contained in:
王嘉豪 2021-08-12 16:46:33 +08:00 committed by GitHub
commit 2d2735faaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ export default {
trackMenu() {
const trackMenuInfo = []
let linkageCount = 0
this.chart.data.fields && this.chart.data.fields.forEach(item => {
this.chart.data && this.chart.data.fields && this.chart.data.fields.forEach(item => {
const sourceInfo = this.chart.id + '#' + item.id
if (this.nowPanelTrackInfo[sourceInfo]) {
linkageCount++