fix(): redirect loop + signout (#8899)
This commit is contained in:
@ -24,7 +24,11 @@ export const WorkspaceProviderEffect = () => {
|
||||
const isMultiWorkspaceEnabled = useRecoilValue(isMultiWorkspaceEnabledState);
|
||||
|
||||
useEffect(() => {
|
||||
if (isMultiWorkspaceEnabled && isDefined(workspacePublicData?.subdomain)) {
|
||||
if (
|
||||
isMultiWorkspaceEnabled &&
|
||||
isDefined(workspacePublicData?.subdomain) &&
|
||||
workspacePublicData.subdomain !== workspaceSubdomain
|
||||
) {
|
||||
redirectToWorkspaceDomain(workspacePublicData.subdomain);
|
||||
}
|
||||
}, [
|
||||
|
||||
Reference in New Issue
Block a user