mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Make the webapp robust to not receiveing a position. (#4802)
This commit is contained in:
@@ -182,8 +182,8 @@ export default class UserProfile extends React.Component {
|
||||
|
||||
dataContent.push(webrtc);
|
||||
|
||||
const position = this.props.user.position.substring(0, Constants.MAX_POSITION_LENGTH);
|
||||
if (position) {
|
||||
if (this.props.user.position) {
|
||||
const position = this.props.user.position.substring(0, Constants.MAX_POSITION_LENGTH);
|
||||
dataContent.push(
|
||||
<div
|
||||
data-toggle='tooltip'
|
||||
|
||||
Reference in New Issue
Block a user