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 d14a64caf9
commit 53e7718fcf
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

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

View File

@@ -17,6 +17,9 @@ public class ReleaseProfileResource : RestResource
public ReleaseProfileResource()
{
Required = new List<string>();
Ignored = new List<string>();
Preferred = new List<KeyValuePair<string, int>>();
Tags = new HashSet<int>();
}
}