We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02ea0a commit 3d1ad0fCopy full SHA for 3d1ad0f
lib/plugins/aws/deploy/lib/check-for-changes.js
@@ -70,10 +70,10 @@ module.exports = {
70
);
71
}
72
})();
73
- const objects = result.Contents.filter(({ Key: key }) =>
+ const objects = result?.Contents?.filter(({ Key: key }) =>
74
isDeploymentDirToken(key.split('/')[3])
75
76
- if (!objects.length) return [];
+ if (!objects?.length) return [];
77
78
const ordered = _.orderBy(objects, ['Key'], ['desc']);
79
0 commit comments