@antscorp/antsomi-ui 1.3.7-beta.50 → 1.3.7-beta.51

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.
@@ -429,7 +429,12 @@ export const AccountSharing = props => {
429
429
  }
430
430
  }
431
431
  }
432
- if (selectedNetworkRef.current && selectedNetworkRef.current.homePage) {
432
+ if (portalRedirectUrl) {
433
+ window.location.href = portalRedirectUrl
434
+ .replace(/:portal_id/g, selectedNetworkRef.current.networkId)
435
+ .replace(/:user_id/g, String(accountId || ''));
436
+ }
437
+ else if (selectedNetworkRef.current && selectedNetworkRef.current.homePage) {
433
438
  getAppsMenus({
434
439
  token: postParam.token,
435
440
  userId: accountId,
@@ -495,14 +500,7 @@ export const AccountSharing = props => {
495
500
  if (+networkId === +network.networkId) {
496
501
  return;
497
502
  }
498
- if (portalRedirectUrl) {
499
- window.location.href = portalRedirectUrl
500
- .replace(/:portal_id/g, network.networkId)
501
- .replace(/:user_id/g, String(accountId || ''));
502
- }
503
- else {
504
- loginNetworkWithToken(network);
505
- }
503
+ loginNetworkWithToken(network);
506
504
  };
507
505
  const handleSwitchAccount = async (account) => {
508
506
  await logAccountSwitch(account.user_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.7-beta.50",
3
+ "version": "1.3.7-beta.51",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",