Skip to content

Commit

Permalink
revert changes to es_search_source/create_source_editor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 28, 2020
1 parent d62b35f commit 86a8d12
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export class CreateSourceEditor extends Component {
}

_onIndexPatternSelect = (indexPatternId) => {
this.setState({ indexPatternId }, () => {
if (!indexPatternId) {
this._previewLayer();
}
this._loadIndexPattern(indexPatternId);
});
this.setState(
{
indexPatternId,
},
this._loadIndexPattern(indexPatternId)
);
};

_loadIndexPattern = (indexPatternId) => {
Expand Down

0 comments on commit 86a8d12

Please sign in to comment.