Merge pull request #15319 from Budibase/cheeks-fixes
Fix enrich endpoint in client
This commit is contained in:
commit
0397eb7d98
|
@ -66,10 +66,9 @@ export const patchAPI = API => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const fetchRelationshipData = API.fetchRelationshipData
|
const fetchRelationshipData = API.fetchRelationshipData
|
||||||
API.fetchRelationshipData = async params => {
|
API.fetchRelationshipData = async (sourceId, rowId, fieldName) => {
|
||||||
const tableId = params?.tableId
|
const rows = await fetchRelationshipData(sourceId, rowId, fieldName)
|
||||||
const rows = await fetchRelationshipData(params)
|
return await enrichRows(rows, sourceId)
|
||||||
return await enrichRows(rows, tableId)
|
|
||||||
}
|
}
|
||||||
const fetchTableData = API.fetchTableData
|
const fetchTableData = API.fetchTableData
|
||||||
API.fetchTableData = async tableId => {
|
API.fetchTableData = async tableId => {
|
||||||
|
|
Loading…
Reference in New Issue