fix: editor-preview looks at draft again

This commit is contained in:
hugo committed 2026-02-20 22:15:55 +01:00
1 parent 1543af6edc
commit 5a2a6c9edb
8 files changed
+104 -15

No files matched your search

+1 -1
View File
@@ -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);