mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: null exception from adhoc metric popover (#13955)
This commit is contained in:
@@ -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',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user