diff --git a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue index dfbf7ff0bd..a5a19b3c05 100644 --- a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue +++ b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/ComponentColorSelector.vue @@ -20,7 +20,7 @@ {{ $t('chart.gradient') }}{{ $t('chart.color') }} @@ -36,7 +36,7 @@ @@ -50,7 +50,7 @@ { + const fieldsMap = fields.reduce((p, n) => { p[n.dataeaseName] = n return p }, {}) || {} - const quotaIndex = dataConfig.meta.findIndex(m => fielsMap[m.field].groupType === 'q') + const quotaIndex = dataConfig.meta.findIndex(m => fieldsMap[m.field].groupType === 'q') const data = chart.data?.tableRow if (quotaIndex === 0 || !data?.length) { return