Merge pull request #15319 from Budibase/cheeks-fixes

Fix enrich endpoint in client
This commit is contained in:
Andrew Kingston 2025-01-07 17:21:16 +00:00 committed by GitHub
commit 0397eb7d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -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 => {