Skip to content

Commit db6264c

Browse files
Copilothotlong
andcommitted
fix: filter out 'id' field from auto-generated columns in RelatedList
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ea3e823 commit db6264c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-detail/src/RelatedList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const RelatedList: React.FC<RelatedListProps> = ({
197197
if (!objectSchema?.fields) return [];
198198
const resolvedObjectName = objectName || api || '';
199199
return Object.entries(objectSchema.fields)
200-
.filter(([key]) => !key.startsWith('_'))
200+
.filter(([key]) => !key.startsWith('_') && key !== 'id')
201201
.map(([key, def]: [string, any]) => {
202202
const col: any = {
203203
accessorKey: key,

0 commit comments

Comments
 (0)