Skip to content

Commit 029a0f7

Browse files
authored
Fix spans not hidden on expand/collapse (#6394)
1 parent 7fa8a02 commit 029a0f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private string GetRowClass(SpanWaterfallViewModel viewModel)
261261

262262
public SpanDetailsViewModel? SelectedSpan { get; set; }
263263

264-
private void OnToggleCollapse(SpanWaterfallViewModel viewModel)
264+
private async Task OnToggleCollapse(SpanWaterfallViewModel viewModel)
265265
{
266266
// View model data is recreated if the trace updates.
267267
// Persist the collapsed state in a separate list.
@@ -275,6 +275,8 @@ private void OnToggleCollapse(SpanWaterfallViewModel viewModel)
275275
viewModel.IsCollapsed = true;
276276
_collapsedSpanIds.Add(viewModel.Span.SpanId);
277277
}
278+
279+
await _dataGrid.SafeRefreshDataAsync();
278280
}
279281

280282
private async Task OnShowPropertiesAsync(SpanWaterfallViewModel viewModel, string? buttonId)

0 commit comments

Comments
 (0)