Skip to content

Commit 31ec150

Browse files
vishalshrm539Sharma
andauthored
Fixed SelfServiceCaseView not loading when default portal isn't WSS (#519)
Co-authored-by: Sharma <[email protected]>
1 parent 7ba75d8 commit 31ec150

File tree

1 file changed

+5
-0
lines changed
  • packages/react-sdk-components/src/components/template/AppShell

1 file changed

+5
-0
lines changed

packages/react-sdk-components/src/components/template/AppShell/AppShell.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ export default function AppShell(props: PropsWithChildren<AppShellProps>) {
112112
});
113113

114114
setMapChildren(tempMap);
115+
116+
/* TODO: We're setting the `pyPortalTemplate` for now, this would be handled by the CoreJS in the future releases */
117+
if (portalTemplate === 'wss') {
118+
PCore.getEnvironmentInfo().setEnvironmentInfo({ ...PCore.getEnvironmentInfo().environmentInfoObject, pyPortalTemplate: 'wss' } as any);
119+
}
115120
}, []);
116121

117122
useEffect(() => {

0 commit comments

Comments
 (0)