From c5153d68bb64538c5321b97b1ab38dcc6483accd Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 24 May 2026 07:22:38 -0400 Subject: [PATCH] Dashboard: fix API keys page stuck on "Loading" ApiKeysPage.OnInitializedAsync overrode the base without chaining, so DashboardPageBase's Snapshot seed and hub connect never ran and the page rendered the null-snapshot empty state forever. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Dashboard/Components/Pages/ApiKeysPage.razor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor index 7c885a9..d3e6c0c 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor +++ b/src/ZB.MOM.WW.MxGateway.Server/Dashboard/Components/Pages/ApiKeysPage.razor @@ -225,6 +225,8 @@ else protected override async Task OnInitializedAsync() { + await base.OnInitializedAsync().ConfigureAwait(false); + AuthenticationState authenticationState = await AuthenticationStateProvider.GetAuthenticationStateAsync() .ConfigureAwait(false); CanManageApiKeys = ApiKeyManagementService.CanManage(authenticationState.User);