fix(JotForm Trigger Node): Fix iteration on form loader (#7751)

https://n8nio.sentry.io/issues/4636463129
This commit is contained in:
Iván Ovejero 2023-11-17 16:42:30 +01:00 committed by GitHub
parent 6d19f88080
commit 82f3202a2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,9 @@ export class JotFormTrigger implements INodeType {
limit: 1000, limit: 1000,
}; };
const forms = await jotformApiRequest.call(this, 'GET', '/user/forms', {}, qs); const forms = await jotformApiRequest.call(this, 'GET', '/user/forms', {}, qs);
if (!Array.isArray(forms?.content)) return [];
for (const form of forms.content) { for (const form of forms.content) {
const formName = form.title; const formName = form.title;
const formId = form.id; const formId = form.id;