Fixed Loading Mistake

This commit is contained in:
Moritz Deiaco
2024-05-30 18:17:25 +02:00
parent 20d0e1c8eb
commit ac5890f115
3 changed files with 9 additions and 6 deletions

View File

@@ -13,6 +13,7 @@
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
UserCount = UserRepository.Get().Count();
}
}

View File

@@ -13,6 +13,7 @@
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
ServerCount = ServerRepository.Get().Count();
}

View File

@@ -30,10 +30,11 @@
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
ServerCount = await ServerRepository.Get().Where(x => x.Owner == IdentityService.CurrentUser).CountAsync();
NetworksCount = await NetworkRepository.Get().Where(x => x.User == IdentityService.CurrentUser).CountAsync();
}
}
}