@iblai/web-utils 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3588,6 +3588,10 @@ function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, curr
3588
3588
  }
3589
3589
  else {
3590
3590
  removeVisitingTenant === null || removeVisitingTenant === void 0 ? void 0 : removeVisitingTenant();
3591
+ const userTenantRecord = enhancedTenants === null || enhancedTenants === void 0 ? void 0 : enhancedTenants.find((t) => t.key === currentTenant);
3592
+ if (userTenantRecord) {
3593
+ saveCurrentTenant(userTenantRecord);
3594
+ }
3591
3595
  const rbacPermissions = await loadPlatformPermissions(currentTenant);
3592
3596
  onLoadPlatformPermissions === null || onLoadPlatformPermissions === void 0 ? void 0 : onLoadPlatformPermissions(rbacPermissions);
3593
3597
  }