From 8f387cd86b4887d479eb9bbdd312919fccf5f51e Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Tue, 28 Jan 2025 07:24:46 +0800 Subject: [PATCH] fix(console): fix SAML app creation API usage (#6990) --- .../src/components/ApplicationCreation/CreateForm/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx b/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx index 35ed12a7d..6f797685b 100644 --- a/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx +++ b/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx @@ -10,7 +10,6 @@ import Modal from 'react-modal'; import { useSWRConfig } from 'swr'; import { GtagConversionId, reportConversion } from '@/components/Conversion/utils'; -import { isDevFeaturesEnabled } from '@/consts/env'; import { latestProPlanId } from '@/consts/subscriptions'; import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider'; import DynamicT from '@/ds-components/DynamicT'; @@ -94,10 +93,7 @@ function CreateForm({ } const appCreationEndpoint = - // TODO: @darcy remove this after the SAML is implemented - isDevFeaturesEnabled && data.type === ApplicationType.SAML - ? 'api/saml-applications' - : 'api/applications'; + data.type === ApplicationType.SAML ? 'api/saml-applications' : 'api/applications'; const createdApp = await api.post(appCreationEndpoint, { json: data }).json();