Skip to content

Commit

Permalink
[Updated] transformSerializedNamesToPropertyNames to allow null values.
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoNeves committed Aug 7, 2019
1 parent 7f362c5 commit a6b74a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/json-api-datastore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
});
Expand Down

0 comments on commit a6b74a3

Please sign in to comment.