Skip to content

Commit

Permalink
fix: error detail show
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Oct 25, 2024
1 parent bc5eb10 commit 0c5d6bd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Apm/ErrorDetail.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ protected override async Task OnParametersSetAsync()
private async Task LoadLogAysnc()
{
currentLog = default!;
_dic = new Dictionary<string, object>();
total = 0;
var query = new BaseRequestDto
{
Service = Search.Service!,
Expand Down Expand Up @@ -117,21 +119,19 @@ private async Task LoadLogAysnc()
}
}
query.Conditions = list;
var result = await ApiCaller.ApmService.GetLogListAsync(GlobalConfig.CurrentTeamId, query, Search.Project, Search.ServiceType);
if (currentPage == 1)
var result = await ApiCaller.ApmService.GetLogListAsync(GlobalConfig.CurrentTeamId, query, Search.Project, Search.ServiceType, ignoreTeam: !string.IsNullOrEmpty(Search.TraceId));
if (result != null)
{
total = (int)result.Total;
}
if (currentPage == 1)
{
total = (int)result.Total;
}

if (result.Result == null || !result.Result.Any())
{
currentLog = null;
_dic = new Dictionary<string, object>();
}
else
{
currentLog = result.Result[0];
_dic = currentLog.ToDictionary();
if (result.Result != null && result.Result.Any())
{
currentLog = result.Result[0];
_dic = currentLog.ToDictionary();
}
}
}

Expand Down

0 comments on commit 0c5d6bd

Please sign in to comment.