From a6b74a3732972fa6e3b8513a2e70c261c08ce3e6 Mon Sep 17 00:00:00 2001 From: Ricardo Neves Date: Wed, 7 Aug 2019 15:45:08 +0100 Subject: [PATCH] [Updated] transformSerializedNamesToPropertyNames to allow null values. --- src/services/json-api-datastore.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/json-api-datastore.service.ts b/src/services/json-api-datastore.service.ts index 1f195b0b..386bdd8f 100644 --- a/src/services/json-api-datastore.service.ts +++ b/src/services/json-api-datastore.service.ts @@ -512,7 +512,7 @@ export class JsonApiDatastore { const properties: any = {}; Object.keys(serializedNameToPropertyName).forEach((serializedName) => { - if (attributes && attributes[serializedName] !== null && attributes[serializedName] !== undefined) { + if (attributes && attributes[serializedName] !== undefined) { properties[serializedNameToPropertyName[serializedName]] = attributes[serializedName]; } });