mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 03:50:42 +03:00
Use 'this' in preference to local reference.
This commit is contained in:
parent
481a66ef3c
commit
e752cc8557
1 changed files with 2 additions and 3 deletions
|
@ -40,13 +40,12 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
this.scalarClient = null;
|
this.scalarClient = null;
|
||||||
const appsDrawer = this;
|
|
||||||
if (SdkConfig.get().integrations_ui_url && SdkConfig.get().integrations_rest_url) {
|
if (SdkConfig.get().integrations_ui_url && SdkConfig.get().integrations_rest_url) {
|
||||||
this.scalarClient = new ScalarAuthClient();
|
this.scalarClient = new ScalarAuthClient();
|
||||||
this.scalarClient.connect().done(() => {
|
this.scalarClient.connect().done(() => {
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
if (appsDrawer.state.apps && appsDrawer.state.apps.length < 1) {
|
if (this.state.apps && this.state.apps.length < 1) {
|
||||||
appsDrawer.onClickAddWidget();
|
this.onClickAddWidget();
|
||||||
}
|
}
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Reference in a new issue