diff --git a/lib/metadataTypes/Automation.js b/lib/metadataTypes/Automation.js index 3dacf3934..119681b0f 100644 --- a/lib/metadataTypes/Automation.js +++ b/lib/metadataTypes/Automation.js @@ -74,7 +74,9 @@ class Automation extends MetadataType { }) ) : []; - let metadataMap = this.parseResponseBody({ items: details }); + + // * if retrieving some automations fails, a null element would remain in the details-array for each of them that needs to be filtered to prevent it from causing issues elsewhere + let metadataMap = this.parseResponseBody({ items: details.filter(Boolean) }); if (Object.keys(metadataMap).length) { // attach notification information to each automation that has any