Fixed email preview fetch for draft posts

no issue
This commit is contained in:
Rish 2019-11-06 11:58:17 +07:00
parent edef8eb9b0
commit 06e9dc7209

View File

@ -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;
}