We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378c4dd commit a44cd5bCopy full SHA for a44cd5b
projects/angular2-jsonapi/src/services/json-api-datastore.service.ts
@@ -331,7 +331,7 @@ export class JsonApiDatastore {
331
const models: T[] = [];
332
333
body.data.forEach((data: any) => {
334
- const model: T = this.deserializeModel(modelType, data);
+ const model: T = this.deserializeModel(this.datastoreConfig.models[data.type], data);
335
this.addToStore(model);
336
337
if (body.included) {
0 commit comments