mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Wekan Node): Handle response correctly (#6296)
Fix bug when response wasn't array
This commit is contained in:
@@ -654,7 +654,7 @@ export class Wekan implements INodeType {
|
||||
}
|
||||
let responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
|
||||
|
||||
if (returnAll === false) {
|
||||
if (returnAll === false && Array.isArray(responseData)) {
|
||||
limit = this.getNodeParameter('limit', i);
|
||||
responseData = responseData.splice(0, limit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user