Skip to content

Conversation

@anukmathew
Copy link
Contributor

When selecting an SVG image and editing the note, the image updates correctly. However, switching to a different format (e.g., JPEG) later causes a placeholder to appear in the image picker because the contentType was not being updated.

This fix modifies db.image.update to include contentType: image.file?.type, ensuring the correct file type is stored and displayed when changing formats.

When selecting an SVG image and editing the note, the image updates correctly. However, switching to a different format (e.g., JPEG) later causes a placeholder to appear in the image picker because the `contentType` was not being updated.

This fix modifies `db.image.update` to include `contentType: image.file?.type`, ensuring the correct file type is stored and displayed when changing formats.
@kentcdodds
Copy link
Member

Handled by #51

@kentcdodds kentcdodds closed this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants