mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
add optional chaining operator
This commit is contained in:
parent
992247201e
commit
dc81496c3b
1 changed files with 2 additions and 2 deletions
|
@ -155,8 +155,8 @@ export default class RoomTile extends React.PureComponent<IProps, IState> {
|
|||
CommunityPrototypeStore.getUpdateEventName(this.props.room?.roomId),
|
||||
this.onCommunityUpdate,
|
||||
);
|
||||
prevProps.room.off("Room.name", this.onRoomNameUpdate);
|
||||
this.props.room.on("Room.name", this.onRoomNameUpdate);
|
||||
prevProps.room?.off("Room.name", this.onRoomNameUpdate);
|
||||
this.props.room?.on("Room.name", this.onRoomNameUpdate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue