inline redundant bodyNodes
, fixes react no unique key warning too
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5fbadbc44f
commit
a2219472f6
1 changed files with 2 additions and 5 deletions
|
@ -1127,10 +1127,6 @@ export default React.createClass({
|
||||||
let avatarNode;
|
let avatarNode;
|
||||||
let nameNode;
|
let nameNode;
|
||||||
let shortDescNode;
|
let shortDescNode;
|
||||||
const bodyNodes = [
|
|
||||||
this._getMembershipSection(),
|
|
||||||
this._getGroupSection(),
|
|
||||||
];
|
|
||||||
const rightButtons = [];
|
const rightButtons = [];
|
||||||
if (this.state.editing && this.state.isUserPrivileged) {
|
if (this.state.editing && this.state.isUserPrivileged) {
|
||||||
let avatarImage;
|
let avatarImage;
|
||||||
|
@ -1269,7 +1265,8 @@ export default React.createClass({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<GeminiScrollbarWrapper className="mx_GroupView_body">
|
<GeminiScrollbarWrapper className="mx_GroupView_body">
|
||||||
{ bodyNodes }
|
{ this._getMembershipSection() }
|
||||||
|
{ this._getGroupSection() }
|
||||||
</GeminiScrollbarWrapper>
|
</GeminiScrollbarWrapper>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue