mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08: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 a new issue