Merge branch 'T-2771' into T-2327-and-2771

This commit is contained in:
katherinehhh 2024-01-18 10:40:50 +08:00
commit a60a0a6989

View File

@ -45,7 +45,7 @@ export const linkTo: IField = {
},
},
},
availableTypes: ['belongsToMany'],
// availableTypes: ['belongsToMany'],
schemaInitialize(schema: ISchema, { readPretty, block, targetCollection }) {
if (targetCollection?.titleField && schema['x-component-props']) {
schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || { value: 'id' };