Skip to content

Commit

Permalink
fix(Wekan Node): Handle response correctly (#6296)
Browse files Browse the repository at this point in the history
Fix bug when response wasn't array
  • Loading branch information
agobrech committed May 22, 2023
1 parent 2d90125 commit 4d9c8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Wekan/Wekan.node.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4d9c8b0

Please sign in to comment.