Fixed: API error when sending payload without optional parameters

Co-authored-by: Qstick <qstick@gmail.com>
pull/4976/head
bakerboy448 3 years ago committed by GitHub
parent 3be5d6c258
commit 8d83b1d8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,8 +46,11 @@ namespace Sonarr.Http.ClientSchema
var propertyType = mapping.PropertyType; var propertyType = mapping.PropertyType;
var field = fields.Find(f => f.Name == mapping.Field.Name); var field = fields.Find(f => f.Name == mapping.Field.Name);
if (field != null)
{
mapping.SetterFunc(target, field.Value); mapping.SetterFunc(target, field.Value);
} }
}
return target; return target;

Loading…
Cancel
Save