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

(cherry picked from commit 0abd52d6beba82f9c9af0d6469aa1a7157128537)
This commit is contained in:
Mark McDowall 2021-10-05 09:19:47 -07:00 committed by servarr
parent 93aa50b780
commit 9833a0f45d
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

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

View File

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