Ensure categories are always loaded
This commit is contained in:
parent
712b6cd5a5
commit
c0dfbd5077
@ -34,6 +34,14 @@ export default Route.extend({
|
|||||||
|
|
||||||
return items;
|
return items;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
setupController(controller, model) {
|
||||||
|
this._super(controller, model);
|
||||||
|
|
||||||
|
if (isEmpty(this.get('storage.categories')) && this.get('storage.connected')) {
|
||||||
|
this.get('storage').fetchCategories();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user