mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
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;
|
||||
}, null);
|
||||
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}`;
|
||||
schema.properties[fieldSchema.name]['x-collection-field'] = fieldName;
|
||||
return <RecursionField basePath={basePath} schema={schema} onlyRenderProperties />;
|
||||
|
Loading…
Reference in New Issue
Block a user