Skip to content

Commit

Permalink
Fix bug with "null" in ex6 Proxy objects
Browse files Browse the repository at this point in the history
  • Loading branch information
toomim committed Sep 23, 2022
1 parent d420dfb commit ca56833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "statebus",
"version": "7.0.12",
"version": "7.0.13",
"description": "Synchronize state.",
"main": "statebus.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion statebus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@
}

// Recurse through each property on objects
else if (typeof input === 'object') {
else if (typeof input === 'object' && input !== null) {
var new_obj = {}
for (var k in input)
new_obj[f(k, input)] = translate_fields(input[k], f)
Expand Down

0 comments on commit ca56833

Please sign in to comment.