Browse Source

Merge pull request #22605 from abpframework/WebAssemblyCachedApplicationConfigurationClient

Set current tenant info before calling `NotifyChanged`.
pull/22613/head
Berkan Sasmaz 1 year ago
committed by GitHub
parent
commit
e9412912c6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/WebAssemblyCachedApplicationConfigurationClient.cs

4
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/WebAssemblyCachedApplicationConfigurationClient.cs

@ -63,12 +63,12 @@ public class WebAssemblyCachedApplicationConfigurationClient : ICachedApplicatio
await JSRuntime.InvokeVoidAsync("abp.utils.removeOidcUser");
}
ApplicationConfigurationChangedService.NotifyChanged();
CurrentTenantAccessor.Current = new BasicTenantInfo(
configurationDto.CurrentTenant.Id,
configurationDto.CurrentTenant.Name
);
ApplicationConfigurationChangedService.NotifyChanged();
}
public virtual Task<ApplicationConfigurationDto> GetAsync()

Loading…
Cancel
Save