mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed email preview fetch for draft posts
no issue
This commit is contained in:
parent
edef8eb9b0
commit
06e9dc7209
@ -22,7 +22,7 @@ export default ModalComponent.extend({
|
||||
const url = this.get('ghostPaths.url').api('/email_preview/posts', resourceId);
|
||||
let htmlData = this.get('previewHtml');
|
||||
if (!htmlData) {
|
||||
const response = await this.ajax.request(url);
|
||||
const response = await this.ajax.request(`${url}?status=all`);
|
||||
let [emailPreview] = response.email_previews;
|
||||
htmlData = emailPreview.html;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user