Fixed: Release profiles not saving if Must (Not) Contain is empty

Closes #4681
pull/4687/head
Mark McDowall 3 years ago
parent af654e245c
commit 0abd52d6be

@ -9,8 +9,8 @@ import EditReleaseProfileModalContent from './EditReleaseProfileModalContent';
const newReleaseProfile = { const newReleaseProfile = {
enabled: true, enabled: true,
required: '', required: [],
ignored: '', ignored: [],
preferred: [], preferred: [],
includePreferredWhenRenaming: false, includePreferredWhenRenaming: false,
tags: [], tags: [],

@ -206,8 +206,8 @@ ReleaseProfile.propTypes = {
ReleaseProfile.defaultProps = { ReleaseProfile.defaultProps = {
enabled: true, enabled: true,
required: '', required: [],
ignored: '', ignored: [],
preferred: [], preferred: [],
indexerId: 0 indexerId: 0
}; };

@ -18,6 +18,9 @@ namespace Sonarr.Api.V3.Profiles.Release
public ReleaseProfileResource() public ReleaseProfileResource()
{ {
Required = new List<string>();
Ignored = new List<string>();
Preferred = new List<KeyValuePair<string, int>>();
Tags = new HashSet<int>(); Tags = new HashSet<int>();
} }
} }

Loading…
Cancel
Save