Skip to content

Commit

Permalink
More types
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Dec 27, 2024
1 parent 263845f commit c86dc51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/frontend-core/src/components/grid/stores/rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}, {}),
}))
Expand Down

0 comments on commit c86dc51

Please sign in to comment.