Skip to content

Commit

Permalink
fix: 'filter' of undefined when removing layers (#8057)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntekka authored Sep 3, 2021
1 parent 9bfe940 commit b524870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function getLambdaFunctionsDependentOnLayerFromMeta(layerName: string, me
return Object.entries(meta[categoryName]).filter(
([_, lambdaFunction]: [string, $TSObject]) =>
lambdaFunction.service === ServiceName.LambdaFunction &&
lambdaFunction?.dependsOn.filter(dependency => dependency.resourceName === layerName).length > 0,
lambdaFunction?.dependsOn?.filter(dependency => dependency.resourceName === layerName).length > 0,
);
}

Expand Down

0 comments on commit b524870

Please sign in to comment.