fix: table column field undefined fix (#2311)
This commit is contained in:
parent
d068f9b5df
commit
4a7e44f686
@ -14,7 +14,7 @@ export const ColumnFieldProvider = observer(
|
|||||||
return buf;
|
return buf;
|
||||||
}, null);
|
}, null);
|
||||||
const collectionField = fieldSchema && getCollectionJoinField(fieldSchema['x-collection-field']);
|
const collectionField = fieldSchema && getCollectionJoinField(fieldSchema['x-collection-field']);
|
||||||
if (fieldSchema && record?.__collection && ['select', 'multipleSelect'].includes(collectionField.interface)) {
|
if (fieldSchema && record?.__collection && ['select', 'multipleSelect'].includes(collectionField?.interface)) {
|
||||||
const fieldName = `${record.__collection}.${fieldSchema.name}`;
|
const fieldName = `${record.__collection}.${fieldSchema.name}`;
|
||||||
schema.properties[fieldSchema.name]['x-collection-field'] = fieldName;
|
schema.properties[fieldSchema.name]['x-collection-field'] = fieldName;
|
||||||
return <RecursionField basePath={basePath} schema={schema} onlyRenderProperties />;
|
return <RecursionField basePath={basePath} schema={schema} onlyRenderProperties />;
|
||||||
|
Loading…
Reference in New Issue
Block a user