Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Jun 20, 2024
1 parent 41a55ee commit ea826a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class UserClaimPageDto
{
public int Total { get; set; }

public List<UserClaimDto> Items { get; }
public List<UserClaimDto> Items { get; set; }
}

public class UserClaimDto
Expand Down
5 changes: 3 additions & 2 deletions src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/App/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private async Task UserChange(Guid userId)
foreach (var key in keys)
{
var declare = claimTypes.Find(item => item.Name == key);
if (string.IsNullOrEmpty(declare.Description) || declare.Description == key)
if (declare == null || string.IsNullOrEmpty(declare.Description) || declare.Description == key)
continue;
var value = claims[key];
claims.Remove(key);
Expand All @@ -189,7 +189,7 @@ private async Task UserChange(Guid userId)
foreach (var key in claims.Keys)
{
this.claims.Add(key, claims[key]);
}
}
await LoadTrace();
}

Expand Down Expand Up @@ -308,6 +308,7 @@ private void ClearData()
phoneModel = null;
claims.Clear();
data.Clear();
StateHasChanged();
}

private void SetTraceData(IEnumerable<TraceResponseDto> traces)
Expand Down

0 comments on commit ea826a5

Please sign in to comment.