Skip to content

Commit

Permalink
fix(JotForm Trigger Node): Fix iteration on form loader (#7751)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Nov 17, 2023
1 parent 6d19f88 commit 82f3202
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export class JotFormTrigger implements INodeType {
limit: 1000,
};
const forms = await jotformApiRequest.call(this, 'GET', '/user/forms', {}, qs);

if (!Array.isArray(forms?.content)) return [];

for (const form of forms.content) {
const formName = form.title;
const formId = form.id;
Expand Down

0 comments on commit 82f3202

Please sign in to comment.