Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fixed email preview fetch for draft posts
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
rishabhgrg committed Nov 6, 2019
1 parent c177ad2 commit f06533e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/modal-post-email-preview.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit f06533e

Please sign in to comment.