Fixed: (API) Allow new indexer request not to contain empty tags array

This commit is contained in:
Bogdan
2023-02-27 23:49:12 +02:00
parent 65a954b831
commit 5dfaa0db4b

View File

@@ -61,7 +61,7 @@ namespace Prowlarr.Api.V1
Implementation = resource.Implementation,
ConfigContract = resource.ConfigContract,
Message = resource.Message,
Tags = resource.Tags
Tags = resource.Tags ?? new HashSet<int>()
};
var configContract = ReflectionExtensions.CoreAssembly.FindTypeByName(definition.ConfigContract);