fix: interface group undefined (#2656)

This commit is contained in:
katherinehhh 2023-09-15 15:20:20 +08:00 committed by GitHub
parent 1b80930065
commit ccc238d0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,9 +323,9 @@ export const CollectionFields = () => {
groups.pf.push(field);
} else if (field.interface) {
const conf = getInterface(field.interface);
if (conf.group === 'systemInfo') {
if (conf?.group === 'systemInfo') {
groups.system.push(field);
} else if (conf.group === 'relation') {
} else if (conf?.group === 'relation') {
groups.association.push(field);
} else {
groups.general.push(field);
@ -405,7 +405,6 @@ export const CollectionFields = () => {
);
const addProps = { type: 'primary', database };
const syncProps = { type: 'primary' };
console.log(dataSource);
return (
<ResourceActionProvider {...resourceActionProps}>
<FormContext.Provider value={form}>