1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Fixing an issue seen when browsing through datadog error logs for app service.

This commit is contained in:
mike12345567 2024-07-31 11:11:52 +01:00
parent daff1a46d8
commit 4d058b7053

View file

@ -72,10 +72,14 @@ function buildInternalFieldList(
}
if (isRelationship) {
const linkCol = col as RelationshipFieldMetadata
const relatedTable = tables.find(table => table._id === linkCol.tableId)!
const relatedTable = tables.find(table => table._id === linkCol.tableId)
// no relationships provided, don't go more than a layer deep
fieldList = fieldList.concat(buildInternalFieldList(relatedTable, tables))
addJunctionFields(relatedTable, ["doc1.fieldName", "doc2.fieldName"])
if (relatedTable) {
fieldList = fieldList.concat(
buildInternalFieldList(relatedTable, tables)
)
addJunctionFields(relatedTable, ["doc1.fieldName", "doc2.fieldName"])
}
} else {
fieldList.push(`${table._id}.${mapToUserColumn(col.name)}`)
}