Skip to content

Commit

Permalink
fix(console): add devFeatureGuard
Browse files Browse the repository at this point in the history
add devFeatureGuard
  • Loading branch information
simeng-li committed Oct 22, 2024
1 parent 70a067d commit dc8263b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/console/src/pages/EnterpriseSsoDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Skeleton from '@/components/DetailsPage/Skeleton';
import Drawer from '@/components/Drawer';
import PageMeta from '@/components/PageMeta';
import { EnterpriseSsoDetailsTabs } from '@/consts';
import { isCloud } from '@/consts/env';
import { isCloud, isDevFeaturesEnabled } from '@/consts/env';
import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider';
import ConfirmModal from '@/ds-components/ConfirmModal';
import DynamicT from '@/ds-components/DynamicT';
Expand Down Expand Up @@ -69,6 +69,7 @@ function EnterpriseSsoDetails() {

const isIdpInitiatedAuthConfigEnabled = useMemo(
() =>
isDevFeaturesEnabled &&
isCloud &&
ssoConnector?.providerType === SsoProviderType.SAML &&
currentSubscriptionQuota.idpInitiatedSsoEnabled,
Expand Down

0 comments on commit dc8263b

Please sign in to comment.