fix memberDict reference

pull/446/merge
David Baker 2015-10-20 12:32:40 +01:00
parent 7296cbfd5b
commit 93d81d27ba
1 changed files with 6 additions and 2 deletions

View File

@ -35,9 +35,13 @@ module.exports = React.createClass({
makeMemberTiles: function() {
var MemberTile = sdk.getComponent("molecules.MemberTile");
if (!self.memberDict) {
return null;
}
var self = this;
return Object.keys(self.state.memberDict).map(function(userId) {
var m = self.state.memberDict[userId];
return Object.keys(self.memberDict).map(function(userId) {
var m = self.memberDict[userId];
return (
<MemberTile key={userId} member={m} ref={userId} />
);