Fix bug on sso providers (#12841)

This commit is contained in:
Antoine Moreaux
2025-06-24 17:27:32 +02:00
committed by GitHub
parent 09c1162ddd
commit f5c179a8bf

View File

@ -399,7 +399,8 @@ export class UserWorkspaceService extends TypeOrmQueryService<UserWorkspace> {
displayName: workspace.displayName, displayName: workspace.displayName,
workspaceUrls: this.domainManagerService.getWorkspaceUrls(workspace), workspaceUrls: this.domainManagerService.getWorkspaceUrls(workspace),
logo: workspace.logo, logo: workspace.logo,
sso: workspace.workspaceSSOIdentityProviders.reduce( sso:
workspace.workspaceSSOIdentityProviders?.reduce(
(acc, identityProvider) => (acc, identityProvider) =>
acc.concat( acc.concat(
identityProvider.status === 'Inactive' identityProvider.status === 'Inactive'
@ -415,7 +416,7 @@ export class UserWorkspaceService extends TypeOrmQueryService<UserWorkspace> {
], ],
), ),
[] as AvailableWorkspace['sso'], [] as AvailableWorkspace['sso'],
), ) ?? [],
}; };
} }