Browse Source
Prevent crashing at SettingManagement.razor
pull/21497/head
enisn
1 year ago
No known key found for this signature in database
GPG Key ID: A052619F04155D1C
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) |
|
|
|
|