fix: interface group undefined (#2656)
This commit is contained in:
parent
1b80930065
commit
ccc238d0d3
@ -323,9 +323,9 @@ export const CollectionFields = () => {
|
|||||||
groups.pf.push(field);
|
groups.pf.push(field);
|
||||||
} else if (field.interface) {
|
} else if (field.interface) {
|
||||||
const conf = getInterface(field.interface);
|
const conf = getInterface(field.interface);
|
||||||
if (conf.group === 'systemInfo') {
|
if (conf?.group === 'systemInfo') {
|
||||||
groups.system.push(field);
|
groups.system.push(field);
|
||||||
} else if (conf.group === 'relation') {
|
} else if (conf?.group === 'relation') {
|
||||||
groups.association.push(field);
|
groups.association.push(field);
|
||||||
} else {
|
} else {
|
||||||
groups.general.push(field);
|
groups.general.push(field);
|
||||||
@ -405,7 +405,6 @@ export const CollectionFields = () => {
|
|||||||
);
|
);
|
||||||
const addProps = { type: 'primary', database };
|
const addProps = { type: 'primary', database };
|
||||||
const syncProps = { type: 'primary' };
|
const syncProps = { type: 'primary' };
|
||||||
console.log(dataSource);
|
|
||||||
return (
|
return (
|
||||||
<ResourceActionProvider {...resourceActionProps}>
|
<ResourceActionProvider {...resourceActionProps}>
|
||||||
<FormContext.Provider value={form}>
|
<FormContext.Provider value={form}>
|
||||||
|
Loading…
Reference in New Issue
Block a user