Fix unneeded image processing
This commit is contained in:
@@ -225,6 +225,8 @@ export default function EditStoryPage() {
|
||||
...(formData.authorId ? { authorId: formData.authorId } : { authorName: formData.authorName }),
|
||||
tagNames: formData.tags,
|
||||
});
|
||||
// Keep editor state in sync with local URLs so subsequent saves don't re-download
|
||||
setFormData(prev => ({ ...prev, contentHtml: imageResult.processedContent }));
|
||||
}
|
||||
} catch (imageError) {
|
||||
console.warn('Failed to process images, continuing with original content:', imageError);
|
||||
|
||||
Reference in New Issue
Block a user