diff --git a/js/components/contactList/contactList_controller.js b/js/components/contactList/contactList_controller.js index 9a1c9441b..c8c3b009e 100644 --- a/js/components/contactList/contactList_controller.js +++ b/js/components/contactList/contactList_controller.js @@ -68,6 +68,11 @@ app.controller('contactlistCtrl', function($scope, $filter, $route, $routeParams ContactService.getAll().then(function(contacts) { $scope.$apply(function() { ctrl.contacts = contacts; + if (!_.isEmpty(ctrl.contacts)) { + ctrl.setSelectedId(_.sortBy(contacts, function(contact) { + return contact.uid(); + })[0].uid()); + } ctrl.loading = false; }); });