mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
null-guard against groups with a null name :((
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5bf14d8427
commit
f6aa6208ee
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ export default class RoomList2 extends React.Component<IProps, IState> {
|
||||||
// TODO: Put community invites in a more sensible place (not in the room list)
|
// TODO: Put community invites in a more sensible place (not in the room list)
|
||||||
return MatrixClientPeg.get().getGroups().filter(g => {
|
return MatrixClientPeg.get().getGroups().filter(g => {
|
||||||
if (g.myMembership !== 'invite') return false;
|
if (g.myMembership !== 'invite') return false;
|
||||||
return !this.searchFilter || this.searchFilter.matches(g.name);
|
return !this.searchFilter || this.searchFilter.matches(g.name || "");
|
||||||
}).map(g => {
|
}).map(g => {
|
||||||
const avatar = (
|
const avatar = (
|
||||||
<GroupAvatar
|
<GroupAvatar
|
||||||
|
|
Loading…
Reference in a new issue