Fix for deleted row issue - test incoming.

This commit is contained in:
mike12345567 2024-03-07 18:08:50 +00:00
parent 97778a2b45
commit b975132329
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ export async function bulkDestroy(ctx: UserCtx) {
) )
} }
const responses = await Promise.all(promises) 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) { export async function fetchEnrichedRow(ctx: UserCtx) {