mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-02 21:15:05 +00:00
Fixed: Release profiles not saving if Must (Not) Contain is empty
(cherry picked from commit 0abd52d6beba82f9c9af0d6469aa1a7157128537)
This commit is contained in:
parent
93aa50b780
commit
9833a0f45d
3 changed files with 7 additions and 4 deletions
|
@ -9,8 +9,8 @@ import EditReleaseProfileModalContent from './EditReleaseProfileModalContent';
|
|||
|
||||
const newReleaseProfile = {
|
||||
enabled: true,
|
||||
required: '',
|
||||
ignored: '',
|
||||
required: [],
|
||||
ignored: [],
|
||||
preferred: [],
|
||||
includePreferredWhenRenaming: false,
|
||||
tags: [],
|
||||
|
|
|
@ -197,8 +197,8 @@ ReleaseProfile.propTypes = {
|
|||
|
||||
ReleaseProfile.defaultProps = {
|
||||
enabled: true,
|
||||
required: '',
|
||||
ignored: '',
|
||||
required: [],
|
||||
ignored: [],
|
||||
preferred: [],
|
||||
indexerId: 0
|
||||
};
|
||||
|
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue