From 3152aa4e687801e05e14a77a6c186edfca947026 Mon Sep 17 00:00:00 2001 From: mschipperheyn Date: Wed, 22 Jun 2016 18:44:08 -0300 Subject: [PATCH] Remove Error when missing item is encountered, in stead, return undefined --- package.json | 2 +- src/index.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 182dfe8..226b21f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "normalizr-immutable", - "version": "0.0.4-beta7", + "version": "0.0.4-beta8", "description": "Normalizes JSON to immutable Records according to schema for Redux applications and provide proxied access to properties", "main": "lib/index.js", "private": false, diff --git a/src/index.js b/src/index.js index 90f5d8e..a71fec5 100644 --- a/src/index.js +++ b/src/index.js @@ -80,15 +80,14 @@ function proxy(id, schema, bag, options){ }catch(err){ - console.error(err.stack,{ + console.log(err.stack,{ message:'Normalizr:Error processing Proxy', id:target.id, entity:target.key, key:name, reducer:schema.getReducerKey() }); - - throw err; + } return undefined; },