Skip to content

Commit

Permalink
Remove debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed May 29, 2018
1 parent b2762e6 commit 938a99a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/plugins/apm/public/components/shared/KueryBar/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
toQuery,
legacyEncodeURIComponent
} from '../../../utils/url';
import { debounce } from 'lodash';
import { Typeahead } from './Typeahead';
import { getAPMIndexPattern } from '../../../services/rest';
import { convertKueryToEsQuery, getSuggestions } from '../../../services/kuery';
Expand All @@ -35,7 +34,7 @@ class KueryBarView extends Component {
this.setState({ indexPattern });
}

onChange = debounce(async (inputValue, selectionStart) => {
onChange = async (inputValue, selectionStart) => {
const { indexPattern } = this.state;
const { urlParams } = this.props;
if (!indexPattern) {
Expand All @@ -51,7 +50,7 @@ class KueryBarView extends Component {
boolFilter
);
this.setState({ suggestions, isLoading: false });
}, 200);
};

onSubmit = inputValue => {
const { indexPattern } = this.state;
Expand Down

0 comments on commit 938a99a

Please sign in to comment.