From 7d0feef099b33ed59b59be58f0da410ad403f3ad Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 12 Jul 2022 10:03:39 +0300 Subject: [PATCH] fix: use nullish coalescing instead of OR Signed-off-by: mertmit --- packages/nocodb/src/lib/meta/helpers/PagedResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/meta/helpers/PagedResponse.ts b/packages/nocodb/src/lib/meta/helpers/PagedResponse.ts index 95be85e517..ca8ced949c 100644 --- a/packages/nocodb/src/lib/meta/helpers/PagedResponse.ts +++ b/packages/nocodb/src/lib/meta/helpers/PagedResponse.ts @@ -18,7 +18,7 @@ export class PagedResponseImpl { 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 };