From c07057d1d41d769fe48db5ca69c8c1d65f675d63 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 30 Jun 2017 16:05:19 +0100 Subject: [PATCH] Extract props we don't want to pass to BaseAvatar --- src/components/views/avatars/GroupAvatar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/avatars/GroupAvatar.js b/src/components/views/avatars/GroupAvatar.js index 36687af2ca..4253b2f5b7 100644 --- a/src/components/views/avatars/GroupAvatar.js +++ b/src/components/views/avatars/GroupAvatar.js @@ -49,13 +49,15 @@ export default React.createClass({ render: function() { const BaseAvatar = sdk.getComponent("avatars.BaseAvatar"); + // extract the props we use from props so we can pass any others through + const {groupId, groupAvatarUrl, wifth, height, resizeMethod, ...otherProps} = this.props; return ( ); }