From d864dedba03353a1c17602269e676d81489027ae Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 2 Sep 2021 13:31:46 +0100 Subject: [PATCH] Fixing issue with rows not returning correctly. --- packages/server/src/api/controllers/row/ExternalRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts index 371e4d6300..648c94bff5 100644 --- a/packages/server/src/api/controllers/row/ExternalRequest.ts +++ b/packages/server/src/api/controllers/row/ExternalRequest.ts @@ -111,7 +111,7 @@ module External { const thisRow: { [key: string]: any } = {} // filter the row down to what is actually the row (not joined) for (let fieldName of Object.keys(table.schema)) { - const value = row[`${table.name}.${fieldName}`] + const value = row[`${table.name}.${fieldName}`] || row[fieldName] // all responses include "select col as table.col" so that overlaps are handled if (value) { thisRow[fieldName] = value