diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index c4055e3221..3eb65f08e1 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -65,15 +65,17 @@ export const FormItem: any = withDynamicSchemaProps( const showTitle = schema['x-decorator-props']?.showTitle ?? true; const extra = useMemo(() => { - return typeof field.description === 'string' ? ( -
'), - }} - /> - ) : ( - field.description - ); + if (field.description && field.description !== '') { + return typeof field.description === 'string' ? ( + '), + }} + /> + ) : ( + field.description + ); + } }, [field.description]); const className = useMemo(() => { return cx(formItemWrapCss, {