mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-03 02:07:06 +02:00
fix(Wekan Node): Handle response correctly (#6296)
Fix bug when response wasn't array
This commit is contained in:
parent
2d90125c87
commit
4d9c8b07a9
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user