fix: inherit fields filter Foreign Key fields (#1864)

This commit is contained in:
katherinehhh 2023-05-16 11:28:35 +08:00 committed by GitHub
parent 238af440e3
commit 190ba4db1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ export const TableColumnInitializers = (props: any) => {
{
type: 'itemGroup',
title: t(`Parent collection fields`) + '(' + compile(`${Object.keys(inherit)[0]}`) + ')',
children: Object.values(inherit)[0],
children: Object.values(inherit)[0].filter((v)=>!v?.field?.isForeignKey),
},
);
});