Skip to content

Commit

Permalink
Step 15.7: Get the party reactively
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent f894f7d commit dabcc7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/imports/app/parties/party-details.component.ts
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export class PartyDetailsComponent implements OnInit, OnDestroy {
} }


this.partySub = MeteorObservable.subscribe('party', this.partyId).subscribe(() => { this.partySub = MeteorObservable.subscribe('party', this.partyId).subscribe(() => {
this.party = Parties.findOne(this.partyId); MeteorObservable.autorun().subscribe(() => {
this.party = Parties.findOne(this.partyId);
});
}); });


if (this.uninvitedSub) { if (this.uninvitedSub) {
Expand Down

0 comments on commit dabcc7c

Please sign in to comment.