Fixed snippets not loading in background when accessing editor

no issue

- add the missing snippets API query to the editor's background loaded
This commit is contained in:
Kevin Ansfield 2020-10-16 19:21:07 +01:00
parent 45bee39739
commit 3d48ce6bc4

View File

@ -604,6 +604,8 @@ export default Controller.extend({
let membersResponse = yield this.store.query('member', {limit: 1, filter: 'subscribed:true'});
this.set('memberCount', get(membersResponse, 'meta.pagination.total'));
}
yield this.store.query('snippet', {limit: 'all'});
} catch (error) {
this.set('memberCount', 0);
}