Skip to content

Commit

Permalink
updated the review comments
Browse files Browse the repository at this point in the history
Signed-off-by: SivaprasadAluri <[email protected]>
  • Loading branch information
SivaprasadAluri committed Oct 3, 2022
1 parent fce9f1a commit d8845dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
AGGREGATIONS,
GROUPBY,
METRICS_AGGREGATION_OPTIONS,
numericalTypes,
NUMERICAL_TYPES,
} from '../../../../../../../../common/constants/explorer';
import { VIS_CHART_TYPES } from '../../../../../../../../common/constants/shared';
import { MetricList, MetricListEntry } from '../../../../../../../../common/types/explorer';
Expand Down Expand Up @@ -54,7 +54,7 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any)
...userConfigs?.dataConfig,
});
}
}, [userConfigs, userConfigs?.dataConfig, visualizations.vis.name]);
}, [userConfigs?.dataConfig, visualizations.vis.name]);

const updateList = (value: string, index: number, name: string, field: string) => {
const listItem = {
Expand Down Expand Up @@ -128,7 +128,7 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any)
}
}
return fieldOptionList.filter(
(field) => !selectedFields[field.label] && numericalTypes.includes(field.type)
(field) => !selectedFields[field.label] && NUMERICAL_TYPES.includes(field.type)
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
top: 20px;
text-align: center;
width: '100%'
}
}

0 comments on commit d8845dd

Please sign in to comment.