mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
Null guard getMember
This commit is contained in:
@@ -134,6 +134,9 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
for (var i = 0; i < receipts.length; ++i) {
|
for (var i = 0; i < receipts.length; ++i) {
|
||||||
var member = room.getMember(receipts[i].userId);
|
var member = room.getMember(receipts[i].userId);
|
||||||
|
if (!member) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Using react refs here would mean both getting Velociraptor to expose
|
// Using react refs here would mean both getting Velociraptor to expose
|
||||||
// them and making them scoped to the whole RoomView. Not impossible, but
|
// them and making them scoped to the whole RoomView. Not impossible, but
|
||||||
|
|||||||
Reference in New Issue
Block a user