Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix FE exception when changes dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Apr 16, 2021
1 parent 8052d4a commit bba5888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin-chart-echarts/src/Radar/controlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const config: ControlPanelConfig = {
[GenericDataType.NUMERIC]: [[radarMetricMaxValue]],
},
mapStateToProps(explore, control, chart) {
const values = explore?.controls?.metrics?.value as QueryFormMetric[];
const values = (explore?.controls?.metrics?.value as QueryFormMetric[]) ?? [];
const metricColumn = values.map(value => {
if (typeof value === 'string') {
return value;
Expand Down

0 comments on commit bba5888

Please sign in to comment.