diff --git a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx index 7abb842c4..f118d8c32 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx @@ -18,7 +18,7 @@ export const ReadPrettyRecordPicker: React.FC = observer((props: any) => { const { getField } = useCollection(); const collectionField = getField(fieldSchema.name); const [record, setRecord] = useState({}); - return ( + return collectionField ? (