@Yaroslav_Poliakov wrote:
Hi all! 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?
Posts: 2
Participants: 2