Set loading: false when iFrame finishes loading

This commit is contained in:
Luke Barnard 2018-05-14 11:42:38 +01:00
parent 6345e474f5
commit cf8077e605

View file

@ -359,6 +359,7 @@ export default class AppTile extends React.Component {
if (!this.widgetMessaging) {
this._onInitialLoad();
}
this.setState({loading: false});
}
/**
@ -396,8 +397,6 @@ export default class AppTile extends React.Component {
}).catch((err) => {
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
});
this.setState({loading: false});
}
_onWidgetAction(payload) {