diff --git a/src/services/json-api-datastore.service.ts b/src/services/json-api-datastore.service.ts index 20ceae06..8da824ab 100644 --- a/src/services/json-api-datastore.service.ts +++ b/src/services/json-api-datastore.service.ts @@ -443,7 +443,7 @@ export class JsonApiDatastore { const properties: any = {}; Object.keys(serializedNameToPropertyName).forEach((serializedName) => { - if (attributes[serializedName] !== null && attributes[serializedName] !== undefined) { + if (attributes && attributes[serializedName] !== null && attributes[serializedName] !== undefined) { properties[serializedNameToPropertyName[serializedName]] = attributes[serializedName]; } });