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

pull/1452/head
Bogdan 2 years ago
parent 65a954b831
commit 5dfaa0db4b

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

Loading…
Cancel
Save