Skip to content

Commit

Permalink
adding extra metrics after chart configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster08240328 committed Jun 16, 2022
1 parent 467d8ef commit b68e94f
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 b68e94f

Please sign in to comment.