mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-04-22 19:39:25 -05:00
fix: Fetches the party in the header on initial party page load
If the party page is refreshed, the header wasn't populating. This fetches the party in the header _and_ the party page
This commit is contained in:
@@ -20,7 +20,7 @@ habitrpg.controller("PartyCtrl", ['$rootScope','$scope','Groups','Chat','User','
|
||||
$rootScope.party = $scope.group = $scope.newGroup = { type: 'party' };
|
||||
}
|
||||
|
||||
if ($state.is('options.social.party')) {
|
||||
if ($state.is('options.social.party') && $rootScope.party) {
|
||||
Groups.party(true).then(handlePartyResponse, handlePartyError);
|
||||
} else {
|
||||
Groups.Group.syncParty().then(handlePartyResponse, handlePartyError);
|
||||
|
||||
Reference in New Issue
Block a user