From a2f11f17fd2947619ba488c6652f3d398be14776 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 31 Jul 2024 16:31:02 +0100 Subject: [PATCH] Type fix. --- packages/server/src/sdk/app/rows/external.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/rows/external.ts b/packages/server/src/sdk/app/rows/external.ts index 9ab1362606..f81d67f621 100644 --- a/packages/server/src/sdk/app/rows/external.ts +++ b/packages/server/src/sdk/app/rows/external.ts @@ -21,7 +21,8 @@ export async function getRow( ? IncludeRelationship.INCLUDE : IncludeRelationship.EXCLUDE, }) - return response ? response[0] : response + const rows = response?.rows || [] + return rows[0] } export async function save(