mirror of https://github.com/vector-im/riot-web
Also check that the client even exists
parent
58ccc7eb0c
commit
d2c7a5a979
|
@ -67,7 +67,7 @@ export class IntegrationManagers {
|
|||
}
|
||||
|
||||
_setupAccountManagers() {
|
||||
if (!this._client.getUserId()) return; // not logged in
|
||||
if (!this._client || !this._client.getUserId()) return; // not logged in
|
||||
const widgets = WidgetUtils.getIntegrationManagerWidgets();
|
||||
widgets.forEach(w => {
|
||||
const data = w.content['data'];
|
||||
|
|
Loading…
Reference in New Issue