Fixed: Release profiles not saving if Must (Not) Contain is empty
Closes #4681
This commit is contained in:
parent
af654e245c
commit
0abd52d6be
|
@ -9,8 +9,8 @@ import EditReleaseProfileModalContent from './EditReleaseProfileModalContent';
|
|||
|
||||
const newReleaseProfile = {
|
||||
enabled: true,
|
||||
required: '',
|
||||
ignored: '',
|
||||
required: [],
|
||||
ignored: [],
|
||||
preferred: [],
|
||||
includePreferredWhenRenaming: false,
|
||||
tags: [],
|
||||
|
|
|
@ -206,8 +206,8 @@ ReleaseProfile.propTypes = {
|
|||
|
||||
ReleaseProfile.defaultProps = {
|
||||
enabled: true,
|
||||
required: '',
|
||||
ignored: '',
|
||||
required: [],
|
||||
ignored: [],
|
||||
preferred: [],
|
||||
indexerId: 0
|
||||
};
|
||||
|
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue