Skip to content

Commit

Permalink
[APM] Clear KueryBar when query param is not set (#43972)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar authored Aug 26, 2019
1 parent c3d5da7 commit a1e2849
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class Typeahead extends Component {
};

static getDerivedStateFromProps(props, state) {
const { initialValue } = props;
if (initialValue && initialValue !== state.initialValue) {
const initialValue = props.initialValue ? props.initialValue : '';
if (initialValue !== state.initialValue) {
return {
value: initialValue,
initialValue
Expand Down

0 comments on commit a1e2849

Please sign in to comment.