Fixed it not updating. Styles should be good now

pull/1676/head
Jamie 7 years ago
parent ddf926791f
commit 7f73b470af

@ -148,9 +148,10 @@ export class MovieSearchComponent implements OnInit {
private updateItem(key: ISearchMovieResult, updated: ISearchMovieResult) {
const index = this.movieResults.indexOf(key, 0);
if (index > -1) {
// const originalBackdrop = Object.create(this.movieResults[index]);
// this.movieResults[index] = updated;
// this.movieResults[index].backdropPath = originalBackdrop;
const copy = { ...this.movieResults[index] };
this.movieResults[index] = updated;
this.movieResults[index].background = copy.background;
}
}
private clearResults() {

Loading…
Cancel
Save