mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
fix memberDict reference
This commit is contained in:
parent
7296cbfd5b
commit
93d81d27ba
@ -35,9 +35,13 @@ module.exports = React.createClass({
|
|||||||
makeMemberTiles: function() {
|
makeMemberTiles: function() {
|
||||||
var MemberTile = sdk.getComponent("molecules.MemberTile");
|
var MemberTile = sdk.getComponent("molecules.MemberTile");
|
||||||
|
|
||||||
|
if (!self.memberDict) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
return Object.keys(self.state.memberDict).map(function(userId) {
|
return Object.keys(self.memberDict).map(function(userId) {
|
||||||
var m = self.state.memberDict[userId];
|
var m = self.memberDict[userId];
|
||||||
return (
|
return (
|
||||||
<MemberTile key={userId} member={m} ref={userId} />
|
<MemberTile key={userId} member={m} ref={userId} />
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user