mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 11:38:24 +00: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:
parent
63de1e398f
commit
0d2aa4e43a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue