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 {
|
} else {
|
||||||
logger.error("MemberAvatar called somehow with null member or fallbackUserId");
|
logger.error("MemberAvatar called somehow with null member or fallbackUserId");
|
||||||
|
return {} as IState; // prevent an explosion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue