From 1c5b261b5bdd52dcd78bada55b599c789f28a48f Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 7 Aug 2020 18:56:57 +0200 Subject: [PATCH] Adding people to movie's details --- src/app/pages/show-details/show-details.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/show-details/show-details.component.ts b/src/app/pages/show-details/show-details.component.ts index c05dd757..e944276f 100644 --- a/src/app/pages/show-details/show-details.component.ts +++ b/src/app/pages/show-details/show-details.component.ts @@ -47,6 +47,8 @@ export class ShowDetailsComponent implements OnInit this.show = data.show; this.title.setTitle(this.show.title + " - Kyoo"); + this.peopleService.getFromShow(this.show.slug).subscribe(x => this.people = x); + if (this.show.isMovie) return; @@ -59,9 +61,7 @@ export class ShowDetailsComponent implements OnInit this.getEpisodes(1); } }); - this.getEpisodes(this.season); - this.peopleService.getFromShow(this.show.slug).subscribe(x => this.people = x); - }); + this.getEpisodes(this.season);}); } ngOnInit()