Fix React crying on machines without internet due to return undefined

This commit is contained in:
Michael Telatynski 2017-08-24 12:31:29 +01:00
parent 737a258944
commit ec6867dc8b
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -75,7 +75,7 @@ export default class ManageIntegsButton extends React.Component {
}
render() {
let integrationsButton;
let integrationsButton = <div />;
let integrationsError;
if (this.scalarClient !== null) {
if (this.state.showIntegrationsError && this.state.scalarError) {