Fix enrich endpoint in client
This commit is contained in:
parent
4d0f69556c
commit
64471bd733
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue