Fix for deleted row issue - test incoming.
This commit is contained in:
parent
97778a2b45
commit
b975132329
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue