diff --git a/packages/frontend-core/src/components/grid/stores/rows.ts b/packages/frontend-core/src/components/grid/stores/rows.ts index 0651435a7e..cc60f46463 100644 --- a/packages/frontend-core/src/components/grid/stores/rows.ts +++ b/packages/frontend-core/src/components/grid/stores/rows.ts @@ -124,9 +124,13 @@ export const deriveStores = (context: StoreContext): RowDerivedStore => { return $rows.map((row, idx) => ({ ...row, __idx: idx, - ...customColumns.reduce((map: any, column: any) => { + ...customColumns.reduce>((map, column) => { const fromField = $enrichedSchema![column.related!.field] - map[column.name] = getRelatedTableValues(row, column, fromField) + map[column.name] = getRelatedTableValues( + row, + { ...column, related: column.related! }, + fromField + ) return map }, {}), }))