diff --git a/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx b/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx index 3637ef6ff..bc3ba743e 100644 --- a/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx +++ b/packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/ProtectedAppSettings/index.tsx @@ -3,6 +3,7 @@ import { type Application, type CustomDomain as CustomDomainType, } from '@logto/schemas'; +import { cond } from '@silverhand/essentials'; import { type ChangeEvent } from 'react'; import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; import { Trans, useTranslation } from 'react-i18next'; @@ -45,6 +46,7 @@ function ProtectedAppSettings({ data }: Props) { const { control, register, + getFieldState, formState: { errors }, } = useFormContext(); @@ -146,6 +148,10 @@ function ProtectedAppSettings({ data }: Props) { {t('application_details.origin_url_tip')}} >