From d3b3316cbac18356b2f6b0912a3deb2c183e6534 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sun, 13 Feb 2022 19:52:01 +0000 Subject: [PATCH] fix(settings): :bug: Fixed an issue where we were not displaying the excluded keyworks correctly in the TheMovieDbSettings page --- .../src/app/settings/themoviedb/themoviedb.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/settings/themoviedb/themoviedb.component.ts b/src/Ombi/ClientApp/src/app/settings/themoviedb/themoviedb.component.ts index 008e2dfab..21a47637c 100644 --- a/src/Ombi/ClientApp/src/app/settings/themoviedb/themoviedb.component.ts +++ b/src/Ombi/ClientApp/src/app/settings/themoviedb/themoviedb.component.ts @@ -55,9 +55,10 @@ export class TheMovieDbComponent implements OnInit { this.excludedKeywords.forEach(key => { this.tmdbService.getKeyword(key.id).subscribe(keyResult => { - this.excludedKeywords.filter((val, idx) => { - val.name = keyResult.name; - }) + var keyToUpdate = this.excludedKeywords.filter((val) => { + return val.id == key.id; + })[0]; + keyToUpdate.name = keyResult.name; }); });