fix: null exception from adhoc metric popover (#13955)
This commit is contained in:
parent
f3becbeb4f
commit
4b29789b64
|
|
@ -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',
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue