From b975132329993510a6e08ef24d3e035b38d11eb3 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 7 Mar 2024 18:08:50 +0000 Subject: [PATCH] Fix for deleted row issue - test incoming. --- packages/server/src/api/controllers/row/external.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/external.ts b/packages/server/src/api/controllers/row/external.ts index dc3b556c54..8ce9ff0f9d 100644 --- a/packages/server/src/api/controllers/row/external.ts +++ b/packages/server/src/api/controllers/row/external.ts @@ -128,7 +128,10 @@ export async function bulkDestroy(ctx: UserCtx) { ) } const responses = await Promise.all(promises) - return { response: { ok: true }, rows: responses.map(resp => resp.row) } + const finalRows = responses + .map(resp => resp.row) + .filter(row => row && row._id) + return { response: { ok: true }, rows: finalRows } } export async function fetchEnrichedRow(ctx: UserCtx) {