1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Also check that the client even exists

This commit is contained in:
Travis Ralston
2019-08-10 14:59:13 -06:00
parent 58ccc7eb0c
commit d2c7a5a979

View File

@@ -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'];