1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

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

View file

@ -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) {