Skip to content

Commit

Permalink
fix: null exception from adhoc metric popover (#13955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored Apr 6, 2021
1 parent f3becbe commit 4b29789
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class AdhocMetricEditPopover extends React.PureComponent {
option.filterBy.toLowerCase().indexOf(input.toLowerCase()) >= 0,
};

if (this.props.datasourceType === 'druid') {
if (this.props.datasourceType === 'druid' && aggregateSelectProps.options) {
aggregateSelectProps.options = aggregateSelectProps.options.filter(
aggregate => aggregate !== 'AVG',
);
Expand Down

0 comments on commit 4b29789

Please sign in to comment.