fix: make a (shallow) copy of radarr/sonarr tags into a request before adding user tags (#3485)

* Make a (shallow) copy of radarr/sonarr tags into a request before adding user tags

* Undo random formatting changes

* more undoing formatting changes

* Fix undefined case.

* Prettier format
pull/3489/head
Andrew Kennedy 1 year ago committed by GitHub
parent df332cec84
commit 48f76662d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -704,7 +704,7 @@ export class MediaRequest {
let rootFolder = radarrSettings.activeDirectory; let rootFolder = radarrSettings.activeDirectory;
let qualityProfile = radarrSettings.activeProfileId; let qualityProfile = radarrSettings.activeProfileId;
let tags = radarrSettings.tags; let tags = radarrSettings.tags ? [...radarrSettings.tags] : [];
if ( if (
this.rootFolder && this.rootFolder &&
@ -1002,7 +1002,11 @@ export class MediaRequest {
let tags = let tags =
seriesType === 'anime' seriesType === 'anime'
? sonarrSettings.animeTags ? sonarrSettings.animeTags
: sonarrSettings.tags; ? [...sonarrSettings.animeTags]
: []
: sonarrSettings.tags
? [...sonarrSettings.tags]
: [];
if ( if (
this.rootFolder && this.rootFolder &&

Loading…
Cancel
Save