Skip to content

Commit 3152aa4

Browse files
committed
Remove Error when missing item is encountered, in stead, return undefined
1 parent 9a9199e commit 3152aa4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "normalizr-immutable",
3-
"version": "0.0.4-beta7",
3+
"version": "0.0.4-beta8",
44
"description": "Normalizes JSON to immutable Records according to schema for Redux applications and provide proxied access to properties",
55
"main": "lib/index.js",
66
"private": false,

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,14 @@ function proxy(id, schema, bag, options){
8080

8181
}catch(err){
8282

83-
console.error(err.stack,{
83+
console.log(err.stack,{
8484
message:'Normalizr:Error processing Proxy',
8585
id:target.id,
8686
entity:target.key,
8787
key:name,
8888
reducer:schema.getReducerKey()
8989
});
90-
91-
throw err;
90+
9291
}
9392
return undefined;
9493
},

0 commit comments

Comments
 (0)