fix(Jira Software Node): Handle missing issue types in issue types loader (#7534)

https://n8nio.sentry.io/issues/4576849854
This commit is contained in:
Iván Ovejero 2023-10-27 10:09:14 +02:00 committed by GitHub
parent 87996a1fcf
commit 9762705833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,6 +183,9 @@ export class Jira implements INodeType {
`/api/2/project/${projectId}`,
'GET',
);
if (!issueTypes) return { results: [] };
for (const issueType of issueTypes) {
const issueTypeName = issueType.name;
const issueTypeId = issueType.id;