u
This commit is contained in:
@@ -391,13 +391,15 @@ export function createChunkListAutomat({
|
||||
? res.items
|
||||
: Array.isArray(res?.history)
|
||||
? res.history
|
||||
: Array.isArray(res?.rows)
|
||||
? res.rows
|
||||
: Array.isArray(res?.entries)
|
||||
? res.entries
|
||||
: Array.isArray(res)
|
||||
? res
|
||||
: [];
|
||||
: Array.isArray(res?.ledger)
|
||||
? res.ledger
|
||||
: Array.isArray(res?.rows)
|
||||
? res.rows
|
||||
: Array.isArray(res?.entries)
|
||||
? res.entries
|
||||
: Array.isArray(res)
|
||||
? res
|
||||
: [];
|
||||
const total = Number(res?.total ?? res?.totalRows ?? res?.totalCount ?? records.length);
|
||||
const unfilteredTotal = res?.unfilteredTotal != null ? Number(res.unfilteredTotal) : total;
|
||||
return { records, total, unfilteredTotal };
|
||||
|
||||
Reference in New Issue
Block a user