From 0d2aa4e43af3be64206c26c0822d235f37acba6a Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Mon, 23 May 2016 07:13:53 -0500 Subject: [PATCH] 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 --- website/client/js/controllers/partyCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/client/js/controllers/partyCtrl.js b/website/client/js/controllers/partyCtrl.js index d1981b643e..5c4bfc442c 100644 --- a/website/client/js/controllers/partyCtrl.js +++ b/website/client/js/controllers/partyCtrl.js @@ -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);