mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
refactor(console): refactor IdP init SSO available apps dropdown (#6935)
This commit is contained in:
parent
669b2de234
commit
9ee0285528
1 changed files with 2 additions and 10 deletions
|
@ -1,8 +1,4 @@
|
|||
import {
|
||||
ApplicationType,
|
||||
type Application,
|
||||
type SsoConnectorWithProviderConfig,
|
||||
} from '@logto/schemas';
|
||||
import { type Application, type SsoConnectorWithProviderConfig } from '@logto/schemas';
|
||||
import { useMemo } from 'react';
|
||||
import useSWR from 'swr';
|
||||
|
||||
|
@ -35,12 +31,8 @@ function IdpInitiatedAuth({ ssoConnector }: Props) {
|
|||
[applicationError, applications, idpInitiatedAuthConfig, idpInitiatedAuthConfigError]
|
||||
);
|
||||
|
||||
// Filter out non-SAML third-party applications
|
||||
const filteredApplications = useMemo(
|
||||
() =>
|
||||
applications?.filter(
|
||||
({ type, isThirdParty }) => !isThirdParty || type === ApplicationType.SAML
|
||||
),
|
||||
() => applications?.filter(({ isThirdParty }) => !isThirdParty),
|
||||
[applications]
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue