mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
[#1710] fix to party-in-header
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
|
||||
habitrpg.controller("HeaderCtrl", ['$scope', 'Groups', 'User',
|
||||
function($scope, Groups, User) {
|
||||
$scope.party = Groups.party();
|
||||
$scope.partyMinusSelf = _.filter($scope.party, function(member){
|
||||
return member._id !== User.user._id;
|
||||
$scope.party = Groups.party(function(){
|
||||
$scope.partyMinusSelf = _.filter($scope.party.members, function(member){
|
||||
return member._id !== User.user._id;
|
||||
});
|
||||
});
|
||||
}
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user