Skip to content

Commit

Permalink
do not show URL drilldowns in geometry filter action selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Nov 20, 2020
1 parent ccc2fe8 commit ff9ab05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/maps/public/components/action_select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import React, { Component } from 'react';
import { EuiFormRow, EuiSuperSelect, EuiIcon } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { ActionExecutionContext, Action } from 'src/plugins/ui_actions/public';
import { isUrlDrilldown } from '../trigger_actions/trigger_utils';

interface Props {
value?: string;
Expand Down Expand Up @@ -41,7 +42,7 @@ export class ActionSelect extends Component<Props, State> {
}
const actions = await this.props.getFilterActions();
if (this._isMounted) {
this.setState({ actions });
this.setState({ actions: actions.filter((action) => !isUrlDrilldown(action)) });
}
}

Expand Down

0 comments on commit ff9ab05

Please sign in to comment.