diff --git a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts index b4c6720640..f1215e2fdd 100644 --- a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts +++ b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts @@ -96,13 +96,12 @@ export async function apiRequestAllItems(this: IHookFunctions | IExecuteFunction do { responseData = await apiRequest.call(this, method, endpoint, body, query); - returnData.push(...responseData); query.offset += query.limit; } while ( - responseData.length === 0 + responseData.length !== 0 ); return returnData;