fix: Update superadmin orgs list after create (#2278)

Fixes newly created org not showing in list
This commit is contained in:
sua yoo 2025-01-07 11:12:11 -08:00 committed by GitHub
parent cf1d97ab68
commit 71a83bb2e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,6 +366,7 @@ export class Admin extends BtrixElement {
method: "POST",
body: JSON.stringify(params),
});
await this.fetchOrgs();
const userInfo = await this.getUserInfo();
AppStateService.updateUser(formatAPIUser(userInfo));