From 190ba4db1fc1eb7fec4993004b6a32614b7a4120 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 16 May 2023 11:28:35 +0800 Subject: [PATCH] fix: inherit fields filter Foreign Key fields (#1864) --- .../src/schema-initializer/buttons/TableColumnInitializers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx index ca12ab15c..6d8fcf351 100644 --- a/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx @@ -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), }, ); });