I have route with next model:
model: function model(params) {
this.store.unloadAll('comment');
this.get('adapterContext').setRecipeId(params.recipe_id);
return new _ember['default'].RSVP.hash({
recipe: this.store.findRecord('recipe', params.recipe_id),
comments: this.store.findAll('comment')
});
}
In some cases request to /comments is failing. But I still want to show current route (just with some visual changes). Now I just get errors in console and transition to route failed. How can I change it?
UPD:
/comments returns 500 error from server. And in console I have got ember.debug.js:30877 Error: Adapter operation failed.
Aucun commentaire:
Enregistrer un commentaire