Browse Source

fix: use nullish coalescing instead of OR

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2648/head
mertmit 2 years ago
parent
commit
7d0feef099
  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