mirror of
https://github.com/Readarr/Readarr.git
synced 2026-02-02 02:02:47 -05:00
Fixed: Release profiles not saving if Must (Not) Contain is empty
(cherry picked from commit 0abd52d6beba82f9c9af0d6469aa1a7157128537)
This commit is contained in:
@@ -9,8 +9,8 @@ import EditReleaseProfileModalContent from './EditReleaseProfileModalContent';
|
||||
|
||||
const newReleaseProfile = {
|
||||
enabled: true,
|
||||
required: '',
|
||||
ignored: '',
|
||||
required: [],
|
||||
ignored: [],
|
||||
preferred: [],
|
||||
includePreferredWhenRenaming: false,
|
||||
tags: [],
|
||||
|
||||
@@ -198,8 +198,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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user