Browse Source

Merge pull request #2648 from nocodb/2647-fix-paged-response

fix: use nullish coalescing instead of OR on PagedResponseImpl
pull/2652/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
d0b9622376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/lib/meta/helpers/PagedResponse.ts

2
packages/nocodb/src/lib/meta/helpers/PagedResponse.ts

@ -18,7 +18,7 @@ export class PagedResponseImpl<T> {
config.limitMin
);
const offset = Math.max(+(args.offset || args.o) || 0, 0);
const count = args.count || null;
const count = args.count ?? null;
this.list = list;
if (count !== null) {
this.pageInfo = { totalRows: +count };

Loading…
Cancel
Save