From 7bd081ba5034aabd0f72796994655ce96b6f758b Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 19 Jun 2026 04:16:01 -0400 Subject: [PATCH] fix(ui): move Razor comment outside start tag rendered as an invalid attribute name in a real browser (InvalidCharacterError on setAttribute), tearing down the SignalR circuit whenever Site Health Trends renders. bUnit's virtual DOM masked it; the live Playwright smoke (KpiTiles) caught it. Comment moved outside the start tag. --- .../Components/Pages/Monitoring/Health.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/Health.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/Health.razor index b71bfda1..f237283f 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/Health.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/Health.razor @@ -89,10 +89,10 @@
Site Health Trends
@if (_trendSiteKeys.Count > 0) { + @* OnTrendSiteChangedAsync is async — Blazor wraps it in an EventCallback so the returned Task IS awaited; keep the Async signature, do not change it to a void/fire-and-forget handler. This comment MUST stay OUTSIDE the @foreach (var key in _trendSiteKeys) {