Skip to content

Commit

Permalink
Empty objects are required for wafv2 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomesdearaujo committed Feb 21, 2024
1 parent 74335f6 commit 97b2bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/core/lib/cfn-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ function deepMerge(target: any, ...sources: any[]) {
// eventual value we assigned is `undefined`, and there are no
// sibling concrete values alongside, so we can delete this tree.
const output = target[key];
if (typeof(output) === 'object' && Object.keys(output).length === 0) {
if (output === null) {
delete target[key];
}
} else if (value === undefined) {
Expand Down

0 comments on commit 97b2bda

Please sign in to comment.