mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Test for contact not being rendered. owncloud/contacts#91
This commit is contained in:
parent
af0f352a0f
commit
03ae02c155
@ -2201,6 +2201,10 @@ OC.Contacts = OC.Contacts || {};
|
||||
);
|
||||
self.length +=1;
|
||||
var $item = self.contacts[id].renderListItem();
|
||||
if(!$item) {
|
||||
console.warn('Contact', contact, 'could not be rendered!');
|
||||
return true; // continue
|
||||
}
|
||||
items.push($item.get(0));
|
||||
if(items.length === 100) {
|
||||
self.$contactList.append(items);
|
||||
|
Loading…
Reference in New Issue
Block a user