Set loading: false when iFrame finishes loading
This commit is contained in:
parent
6345e474f5
commit
cf8077e605
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue