Browse Source
Merge pull request #21500 from abpframework/SettingManagement.razor.cs
Make sure `SettingComponentCreationContext.Groups` is not empty.
pull/21505/head
liangshiwei
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/SettingManagement.razor.cs
|
|
|
@ -42,7 +42,10 @@ public partial class SettingManagement |
|
|
|
SettingComponentCreationContext.Normalize(); |
|
|
|
SettingItemRenders.Clear(); |
|
|
|
|
|
|
|
SelectedGroup = GetNormalizedString(SettingComponentCreationContext.Groups.First().Id); |
|
|
|
if (SettingComponentCreationContext.Groups.Any()) |
|
|
|
{ |
|
|
|
SelectedGroup = GetNormalizedString(SettingComponentCreationContext.Groups.First().Id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected override async Task OnAfterRenderAsync(bool firstRender) |
|
|
|
|