fix: editor-preview looks at draft again

This commit is contained in:
2026-02-20 22:15:55 +01:00
parent 1543af6edc
commit 5a2a6c9edb
8 changed files with 104 additions and 15 deletions

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);