Fix enrich endpoint in client

This commit is contained in:
Andrew Kingston 2025-01-07 17:12:56 +00:00
parent 4d0f69556c
commit 64471bd733
No known key found for this signature in database
1 changed files with 3 additions and 4 deletions

View File

@ -66,10 +66,9 @@ export const patchAPI = API => {
}
}
const fetchRelationshipData = API.fetchRelationshipData
API.fetchRelationshipData = async params => {
const tableId = params?.tableId
const rows = await fetchRelationshipData(params)
return await enrichRows(rows, tableId)
API.fetchRelationshipData = async (sourceId, rowId, fieldName) => {
const rows = await fetchRelationshipData(sourceId, rowId, fieldName)
return await enrichRows(rows, sourceId)
}
const fetchTableData = API.fetchTableData
API.fetchTableData = async tableId => {