Skip to content

Commit

Permalink
fix: Null-value pattern bug #46
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Jun 30, 2022
1 parent ae9fcc9 commit 25b4a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mhlabs/evb-cli",
"version": "1.1.39",
"version": "1.1.40",
"description": "A package for building EventBridge/CloudWatch Events patterns",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/local/listeners/localPatternListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const intrinsicFunctions = [
"Ref",
];
let output = console;
function findAllKeys(obj, keyArray) {
keyArray.push(...Object.keys(obj));
for (const prop of Object.keys(obj)) {
function findAllKeys(obj, keyArray) {
keyArray.push(...Object.keys(obj || {}));
for (const prop of Object.keys(obj || {})) {
if (
!obj[prop] ||
typeof obj[prop] !== "object" ||
Expand Down

0 comments on commit 25b4a87

Please sign in to comment.