Skip to content

Commit

Permalink
adding extra metrics after chart configuration (#20410)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster08240328 authored Jun 16, 2022
1 parent 467d8ef commit a8a6b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/explore/reducers/exploreReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export default function exploreReducer(state = {}, action) {
if (controlName === 'metrics' && old_metrics_data && new_column_config) {
value.forEach((item, index) => {
if (
item.label !== old_metrics_data[index].label &&
!!new_column_config[old_metrics_data[index].label]
item?.label !== old_metrics_data[index]?.label &&
!!new_column_config[old_metrics_data[index]?.label]
) {
new_column_config[item.label] =
new_column_config[old_metrics_data[index].label];
Expand Down

0 comments on commit a8a6b73

Please sign in to comment.