diff --git a/packages/nocodb/src/helpers/PagedResponse.ts b/packages/nocodb/src/helpers/PagedResponse.ts index cd9da62d45..97f8e3b658 100644 --- a/packages/nocodb/src/helpers/PagedResponse.ts +++ b/packages/nocodb/src/helpers/PagedResponse.ts @@ -30,6 +30,14 @@ export class PagedResponseImpl { this.pageInfo.page === (Math.ceil(this.pageInfo.totalRows / this.pageInfo.pageSize) || 1); } + + if (offset && offset >= count) { + this.errors = [ + { + message: 'Offset is beyond the total number of rows', + }, + ]; + } } list: Array;