fix: editor-preview looks at draft again
This commit is contained in:
1 parent
1543af6edc
commit
5a2a6c9edb
8 files changed
+104
-15
No files matched your search
@@ -205,7 +205,7 @@ export const PostEditor: React.FC<PostEditorProps> = ({ postId }) => {
|
||||
let cancelled = false;
|
||||
setPreviewUrl(null);
|
||||
|
||||
window.electronAPI?.posts.getPreviewUrl(postId)
|
||||
window.electronAPI?.posts.getPreviewUrl(postId, { draft: true })
|
||||
.then((url) => {
|
||||
if (!cancelled) {
|
||||
setPreviewUrl(url);
|
||||
|
||||
Reference in new issue
Block a user