Merge pull request #2294 from CalvinWalzel/fix/edit-existing-request

Use selected episodes in submitRequest
pull/2295/head
Jamie 7 years ago committed by GitHub
commit ffa7cedcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ export class SeriesInformationComponent implements OnInit {
const seasonsViewModel = <ISeasonsViewModel>{seasonNumber: season.seasonNumber, episodes: []}; const seasonsViewModel = <ISeasonsViewModel>{seasonNumber: season.seasonNumber, episodes: []};
season.episodes.forEach(ep => { season.episodes.forEach(ep => {
if(!this.series.latestSeason || !this.series.requestAll || !this.series.firstSeason) { if(!this.series.latestSeason || !this.series.requestAll || !this.series.firstSeason) {
if(ep.requested) { if(ep.selected) {
seasonsViewModel.episodes.push({episodeNumber: ep.episodeNumber}); seasonsViewModel.episodes.push({episodeNumber: ep.episodeNumber});
} }
} }

Loading…
Cancel
Save