From e91fc947890d9176a86b9f47d7f2e3c320db8087 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 4 Apr 2020 00:23:38 +0200 Subject: [PATCH] Cleaning up --- src/app/browse/browse.component.html | 2 +- src/app/show-details/show-details.component.html | 6 +++--- src/app/show-details/show-details.component.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/browse/browse.component.html b/src/app/browse/browse.component.html index 8bc09dfb..ccb8a13d 100644 --- a/src/app/browse/browse.component.html +++ b/src/app/browse/browse.component.html @@ -24,7 +24,7 @@

{{show.title}}

-

{{show.startYear}} - {{show.endYear}}

+

{{show.startYear}} - {{show.endYear}}

{{show.startYear}}

diff --git a/src/app/show-details/show-details.component.html b/src/app/show-details/show-details.component.html index 26489885..c77c95ac 100644 --- a/src/app/show-details/show-details.component.html +++ b/src/app/show-details/show-details.component.html @@ -4,11 +4,11 @@
- +

{{this.show.title}}

-

{{show.startYear}} - {{show.endYear}}

+

{{show.startYear}} - {{show.endYear}}

{{show.startYear}}

@@ -30,7 +30,7 @@
- +

Studio: {{this.show.studio?.name}}

diff --git a/src/app/show-details/show-details.component.ts b/src/app/show-details/show-details.component.ts index 58bb69d9..7c71fb0e 100644 --- a/src/app/show-details/show-details.component.ts +++ b/src/app/show-details/show-details.component.ts @@ -32,7 +32,7 @@ export class ShowDetailsComponent implements OnInit this.show = data.show; this.title.setTitle(this.show.title + " - Kyoo"); - if (this.season == null || this.show.seasons.find(x => x.seasonNumber == this.season) == null) + if (this.season == undefined || this.show.seasons == undefined || this.show.seasons.find(x => x.seasonNumber == this.season) == null) this.season = 1; this.getEpisodes(); @@ -70,7 +70,7 @@ export class ShowDetailsComponent implements OnInit getEpisodes() { - if (this.show == null) + if (this.show == undefined || this.show.seasons == undefined) return; if (this.show.seasons.find(x => x.seasonNumber == this.season).episodes != null)