fixing issue with infinite reload (#37615)

This commit is contained in:
Peter Pisljar 2019-05-31 14:23:56 +02:00 committed by GitHub
parent 62453fe6c3
commit 29bc941e73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ export class Join extends Component {
}
componentDidUpdate() {
if (!this.state.rightFields && getIndexPatternId(this.props)) {
if (!this.state.rightFields && getIndexPatternId(this.props) && !this.state.loadError) {
this._loadRightFields(getIndexPatternId(this.props));
}
}