fix sequence contains no elements error

pull/9361/head
Ahmet Çotur 4 years ago
parent ba7a2c7f67
commit d86da318cb

@ -10,7 +10,7 @@
<CloseButton Clicked="CloseModal" />
</ModalHeader>
<ModalBody MaxHeight="50">
@if (Groups == null)
@if (Groups == null || !Groups.Any())
{
<span>@L["NoFeatureFoundMessage"]</span>
}

@ -47,9 +47,14 @@ namespace Volo.Abp.FeatureManagement.Blazor.Components
ToggleValues = new Dictionary<string, bool>();
SelectionStringValues = new Dictionary<string, string>();
Groups = (await FeatureAppService.GetAsync(ProviderName, ProviderKey)).Groups;
Groups = (await FeatureAppService.GetAsync(ProviderName, ProviderKey))?.Groups;
SelectedTabName = GetNormalizedGroupName(Groups.First().Name);
Groups ??= new List<FeatureGroupDto>();
if (Groups.Any())
{
SelectedTabName = GetNormalizedGroupName(Groups.First().Name);
}
foreach (var featureGroupDto in Groups)
{

Loading…
Cancel
Save