More types

This commit is contained in:
Adria Navarro 2024-12-27 18:35:10 +01:00
parent 263845f8e2
commit c86dc515aa
1 changed files with 6 additions and 2 deletions

View File

@ -124,9 +124,13 @@ export const deriveStores = (context: StoreContext): RowDerivedStore => {
return $rows.map<IndexedUIRow>((row, idx) => ({
...row,
__idx: idx,
...customColumns.reduce((map: any, column: any) => {
...customColumns.reduce<Record<string, string>>((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
}, {}),
}))