mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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:
parent
45bee39739
commit
3d48ce6bc4
1 changed files with 2 additions and 0 deletions
|
@ -604,6 +604,8 @@ export default Controller.extend({
|
||||||
let membersResponse = yield this.store.query('member', {limit: 1, filter: 'subscribed:true'});
|
let membersResponse = yield this.store.query('member', {limit: 1, filter: 'subscribed:true'});
|
||||||
this.set('memberCount', get(membersResponse, 'meta.pagination.total'));
|
this.set('memberCount', get(membersResponse, 'meta.pagination.total'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yield this.store.query('snippet', {limit: 'all'});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.set('memberCount', 0);
|
this.set('memberCount', 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue