diff --git a/packages/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/client/src/schema-component/antd/form-item/FormItem.tsx index 9b3f35fa5..04285abb8 100644 --- a/packages/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/client/src/schema-component/antd/form-item/FormItem.tsx @@ -25,7 +25,7 @@ FormItem.Designer = () => { const compile = useCompile(); const collectionField = getField(fieldSchema['name']); const originalTitle = collectionField?.uiSchema?.title; - const targetFields = collectionField.target ? getCollectionFields(collectionField.target) : []; + const targetFields = collectionField?.target ? getCollectionFields(collectionField.target) : []; const initialValue = { title: field.title === originalTitle ? undefined : field.title, }; @@ -40,93 +40,95 @@ FormItem.Designer = () => { })); return ( - + } as ISchema + } + /> + )} {collectionField?.target && ( { }} /> )} - + {collectionField && }