mercredi 26 octobre 2016

Ember.js FindRecord Invalid Id

I'm trying to see if a entry exists on an API call that returns {data:null} if the entry does not exist. When the call resolves I get the following error:

Cannot read property 'constructor' of null

What I want to do is if the entry doesn't exist I want to create it. If it does exist I want to update the model. Not sure what I'm doing wrong.

Also I created the API to fit JSON API standards so I can change the response of the server as well.




Aucun commentaire:

Enregistrer un commentaire