mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 21:01:07 +02:00
null-guard MatrixClientPeg in RoomViewStore
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
81f501e844
commit
49e1e6e59f
@ -159,7 +159,7 @@ class RoomViewStore extends Store {
|
|||||||
}
|
}
|
||||||
case 'sync_state':
|
case 'sync_state':
|
||||||
this._setState({
|
this._setState({
|
||||||
matrixClientIsReady: MatrixClientPeg.get().isInitialSyncComplete(),
|
matrixClientIsReady: MatrixClientPeg.get() && MatrixClientPeg.get().isInitialSyncComplete(),
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user