mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +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);
|
const url = this.get('ghostPaths.url').api('/email_preview/posts', resourceId);
|
||||||
let htmlData = this.get('previewHtml');
|
let htmlData = this.get('previewHtml');
|
||||||
if (!htmlData) {
|
if (!htmlData) {
|
||||||
const response = await this.ajax.request(url);
|
const response = await this.ajax.request(`${url}?status=all`);
|
||||||
let [emailPreview] = response.email_previews;
|
let [emailPreview] = response.email_previews;
|
||||||
htmlData = emailPreview.html;
|
htmlData = emailPreview.html;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user