From d2cb0282ead7468b79eaf4d25320f93f0c9d75e8 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