mirror of https://github.com/nextcloud/contacts
Fix contacts always showing first contact.
This commit is contained in:
parent
04f9926542
commit
013423e271
|
@ -149,7 +149,7 @@ angular.module('contactsApp')
|
|||
if(ctrl.contactList && ctrl.contactList.length > 0) {
|
||||
$route.updateParams({
|
||||
gid: $routeParams.gid,
|
||||
uid: ctrl.contactList[0].uid()
|
||||
uid: $routeParams.uid || ctrl.contactList[0].uid()
|
||||
});
|
||||
}
|
||||
unbindWatch(); // unbind as we only want one update
|
||||
|
|
Loading…
Reference in New Issue