Silence some more react warnings
Remove some spurious props which were causing react warnings
This commit is contained in:
parent
5b100eeff3
commit
124a816751
2 changed files with 6 additions and 3 deletions
|
@ -59,9 +59,12 @@ module.exports = React.createClass({
|
|||
|
||||
render: function() {
|
||||
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
||||
|
||||
var {member, ...otherProps} = this.props;
|
||||
|
||||
return (
|
||||
<BaseAvatar {...this.props} name={this.state.name} title={this.state.title}
|
||||
idName={this.props.member.userId} url={this.state.imageUrl} />
|
||||
<BaseAvatar {...otherProps} name={this.state.name} title={this.state.title}
|
||||
idName={member.userId} url={this.state.imageUrl} />
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue