Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Mar 31, 2016
1 parent 69207c9 commit 951bc09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/components/contactList/contactList_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ angular.module('contactsApp')
var unbindListWatch = $scope.$watch('ctrl.contactList', function() {
if(ctrl.contactList && ctrl.contactList.length > 0) {
// Check if a specific uid is requested
if($routeParams.uid) {
if($routeParams.uid && $routeParams.gid) {
ctrl.contactList.forEach(function(contact) {
if(contact.uid() === $routeParams.uid) {
ctrl.setSelectedId($routeParams.uid);
Expand Down
6 changes: 5 additions & 1 deletion js/filters/contactGroup_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ angular.module('contactsApp')
}
}
}
return filter;
if(filter.length==0) {
return contacts;
} else {
return filter;
}
};
});

0 comments on commit 951bc09

Please sign in to comment.