mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #1897 from matrix-org/luke/fix-room-widget-second-load-infini-spinner
Fix room widget second load infini spinner
This commit is contained in:
commit
ac297d1e12
@ -359,9 +359,7 @@ export default class AppTile extends React.Component {
|
|||||||
if (!this.widgetMessaging) {
|
if (!this.widgetMessaging) {
|
||||||
this._onInitialLoad();
|
this._onInitialLoad();
|
||||||
}
|
}
|
||||||
if (this._exposeWidgetMessaging) {
|
this.setState({loading: false});
|
||||||
this._exposeWidgetMessaging(this.widgetMessaging);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -399,8 +397,6 @@ export default class AppTile extends React.Component {
|
|||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
|
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setState({loading: false});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onWidgetAction(payload) {
|
_onWidgetAction(payload) {
|
||||||
|
Loading…
Reference in New Issue
Block a user