mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Prevent MemberAvatar soft-crashing when rendered with null member prop (#7691)
This commit is contained in:
parent
5973d725e0
commit
bf8c04ff55
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ export default class MemberAvatar extends React.Component<IProps, IState> {
|
|||
};
|
||||
} else {
|
||||
logger.error("MemberAvatar called somehow with null member or fallbackUserId");
|
||||
return {} as IState; // prevent an explosion
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue