fixed an Error in RaidLogs.razor without parameter
This commit is contained in:
parent
b3af92684c
commit
9c6386e137
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@
|
|||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if(string.IsNullOrEmpty(_selectedLogFolder))
|
||||
{
|
||||
_selectedLogFolder = "Training";
|
||||
}
|
||||
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
|
||||
ulong discordId = ulong.Parse(authState.User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.NameIdentifier).Value);
|
||||
_user = UserService.GetLiebUser(discordId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue