Fix enum options not being displayed
This commit is contained in:
parent
c70247e133
commit
7d5eb198b5
|
|
@ -21,12 +21,9 @@ public class PropertyOptionsResolver : IPropertyOptionsResolver
|
|||
public object? GetOptions(PropertyInfo propertyInfo)
|
||||
{
|
||||
var inputAttribute = propertyInfo.GetCustomAttribute<InputAttribute>();
|
||||
|
||||
if (inputAttribute == null)
|
||||
return null;
|
||||
|
||||
if (inputAttribute.OptionsProvider == null)
|
||||
return inputAttribute.Options ?? (TryGetEnumOptions(propertyInfo, out var items) ? items : null);
|
||||
|
||||
if (inputAttribute?.OptionsProvider == null)
|
||||
return inputAttribute?.Options ?? (TryGetEnumOptions(propertyInfo, out var items) ? items : null);
|
||||
|
||||
var providerType = inputAttribute.OptionsProvider;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue