Fixed: Creating root folders without default tags

This commit is contained in:
Bogdan
2024-07-12 16:30:40 +03:00
parent 68b3904382
commit b5334da253
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ namespace NzbDrone.Core.RootFolders
public int DefaultQualityProfileId { get; set; }
public MonitorTypes DefaultMonitorOption { get; set; }
public NewItemMonitorTypes DefaultNewItemMonitorOption { get; set; }
public HashSet<int> DefaultTags { get; set; }
public HashSet<int> DefaultTags { get; set; } = new ();
public bool IsCalibreLibrary { get; set; }
public CalibreSettings CalibreSettings { get; set; }

View File

@@ -108,7 +108,7 @@ namespace Readarr.Api.V1.RootFolders
DefaultQualityProfileId = resource.DefaultQualityProfileId,
DefaultMonitorOption = resource.DefaultMonitorOption,
DefaultNewItemMonitorOption = resource.DefaultNewItemMonitorOption,
DefaultTags = resource.DefaultTags,
DefaultTags = resource.DefaultTags ?? new HashSet<int>(),
IsCalibreLibrary = resource.IsCalibreLibrary,
CalibreSettings = cs
};