Fix contacts always showing first contact.

This commit is contained in:
Alexander Weidinger 2017-04-24 22:27:08 +02:00
parent 04f9926542
commit 013423e271
1 changed files with 1 additions and 1 deletions

View File

@ -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