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

Closes #4681
This commit is contained in:
Mark McDowall 2021-10-05 09:19:47 -07:00
parent af654e245c
commit 0abd52d6be
3 changed files with 7 additions and 4 deletions

View File

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

View File

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

View File

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