From c86dc515aaaca130024278187d149836c0748bbf Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 27 Dec 2024 18:35:10 +0100 Subject: [PATCH] More types --- packages/frontend-core/src/components/grid/stores/rows.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 }, {}), }))