Skip to content

Commit

Permalink
fix: add check for undefined attributes during push
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle committed Feb 19, 2021
1 parent e6f0cd4 commit d4487c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ async function formNestedStack(

if (dependsOn) {
for (let i = 0; i < dependsOn.length; i += 1) {
for (let j = 0; j < dependsOn[i].attributes.length; j += 1) {
for (let j = 0; j < dependsOn[i]?.attributes?.length || 0; j += 1) {
// If the depends on resource is an imported resource we cannot form GetAtt type reference
// since there is no such thing. We have to read the output.{AttributeName} from the meta
// and inject the value itself into the parameters block
Expand Down

0 comments on commit d4487c4

Please sign in to comment.