mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed it not updating. Styles should be good now
This commit is contained in:
parent
ddf926791f
commit
7f73b470af
1 changed files with 4 additions and 3 deletions
|
@ -148,9 +148,10 @@ export class MovieSearchComponent implements OnInit {
|
||||||
private updateItem(key: ISearchMovieResult, updated: ISearchMovieResult) {
|
private updateItem(key: ISearchMovieResult, updated: ISearchMovieResult) {
|
||||||
const index = this.movieResults.indexOf(key, 0);
|
const index = this.movieResults.indexOf(key, 0);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
// const originalBackdrop = Object.create(this.movieResults[index]);
|
|
||||||
// this.movieResults[index] = updated;
|
const copy = { ...this.movieResults[index] };
|
||||||
// this.movieResults[index].backdropPath = originalBackdrop;
|
this.movieResults[index] = updated;
|
||||||
|
this.movieResults[index].background = copy.background;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private clearResults() {
|
private clearResults() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue