dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump lodash from 4.17.4 to 4.17… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump lodash from 4.17.4 to 4.17… (compare)
render: function () {
if (!app.itemclasses.length) {
app.itemclasses.fetch();
};
this.renderWithTemplate();
this.renderCollection(this.collection, collectionView, this.queryByHook('recipe-list'));
if (!this.collection.length) {
this.fetchCollection();
};
},
ItemClassName: {
deps: ['Type'], fn: function () {
var itemclass = app.itemclasses.get(this.Type);
return itemclass != null ? itemclass.Name : '';
},
cache: false
}
app.itemclasses.fetch()
but probably need to see where they both get fetched etc. I assume the model with the derived ItemClassName is looking at the value of app.itemclasses before the fetch is done. You can either trigger changes on the models when app.itemclasses finishes fetch, or figure out a way to have you subview use a derived or some condition to waitFor both to be fetched.