fix(centralui): pass siteId+connectionName into ShowAsync explicitly

Razor parameter binding propagates on the next render, so reading SiteId
inside LoadRootAsync raced against the parent's "set field, then call
ShowAsync()" pattern — central received an empty siteId and rejected
with "No ClusterClient for site ,". Take the values as args instead.
This commit is contained in:
Joseph Doherty
2026-05-28 12:40:35 -04:00
parent c1e16cf9ff
commit 2c138b6a25
2 changed files with 13 additions and 6 deletions
@@ -573,7 +573,7 @@
?? GetTemplateDefault(attrName);
if (_browserRef is not null)
await _browserRef.ShowAsync();
await _browserRef.ShowAsync(_siteIdentifier, conn.Name, _browserInitial);
}
private void OnBrowserSelected(string nodeId)