In rare cases, a group has no members
This commit is contained in:
parent
5ffa265559
commit
9474b16eba
1 changed files with 2 additions and 1 deletions
|
@ -157,8 +157,9 @@
|
|||
if (this.isPrivate()) {
|
||||
this.contactCollection.reset([this]);
|
||||
} else {
|
||||
var members = this.get('members') || [];
|
||||
this.contactCollection.reset(
|
||||
this.get('members').map(function(number) {
|
||||
members.map(function(number) {
|
||||
var c = this.collection.add({id: number, type: 'private'});
|
||||
c.fetch();
|
||||
return c;
|
||||
|
|
Loading…
Reference in a new issue