From b8b1459cf564d5dcbc5355499ec17160e017b651 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 23 Nov 2015 16:41:17 +0100 Subject: [PATCH] Don't error out if there's no hash in extractRelationship for V3 --- app/serializers/v3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/v3.js b/app/serializers/v3.js index 943519f3..856e5b5b 100644 --- a/app/serializers/v3.js +++ b/app/serializers/v3.js @@ -28,7 +28,7 @@ export default DS.JSONSerializer.extend({ isNewSerializerAPI: true, extractRelationship(type, hash) { - if(!hash.id && hash['@href']) { + if(hash && !hash.id && hash['@href']) { hash.id = hash['@href']; }