Skip to content

Commit 83f4e82

Browse files
committed
refactor: package updates for 25.1 release
1 parent 6bb85d7 commit 83f4e82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-sdk-components/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292
},
9393
{
94-
"files": "*.@(jsx|tsx|mdx)",
94+
"files": "*.@(jsx|ts|tsx|mdx)",
9595
"rules": {
9696
"react/react-in-jsx-scope": "off",
9797
// Set up configuration for future sweep

packages/react-sdk-components/src/samples/FullPortal/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function FullPortal() {
8787
// top level Pega root element (likely a RootContainer)
8888

8989
const { appPortal: thePortal, excludePortals } = SdkConfigAccess.getSdkConfigServer();
90-
const defaultPortal = PCore?.getEnvironmentInfo?.().getDefaultPortal?.();
90+
const defaultPortal = PCore?.getEnvironmentInfo?.().getDefaultPortal?.() || '';
9191
const queryPortal = sessionStorage.getItem('rsdk_portalName');
9292

9393
// Note: myLoadPortal and myLoadDefaultPortal are set when bootstrapWithAuthHeader is invoked
@@ -102,7 +102,7 @@ export default function FullPortal() {
102102
} else {
103103
console.log('Loading portal selection screen');
104104
setPortalSelectionScreen(true);
105-
defaultPortal && setDefaultPortalName(defaultPortal);
105+
setDefaultPortalName(defaultPortal);
106106
// Getting current user's access group's available portals list other than excluded portals (relies on Traditional DX APIs)
107107
getAvailablePortals().then(portals => {
108108
setAvailablePortals(portals as string[]);

0 commit comments

Comments
 (0)