Silence some more react warnings

Remove some spurious props which were causing react warnings
This commit is contained in:
Richard van der Hoff 2016-08-01 17:10:46 +01:00
parent 5b100eeff3
commit 124a816751
2 changed files with 6 additions and 3 deletions

View file

@ -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} />
);
}
});