Skip to content

Commit 7d1dbbb

Browse files
authored
fix the existing note image replacement (#1025)
Fixes the incorrect usage of the `<Img>` component when `previewImage` was a data URL during existing note image replacement.
1 parent 4e6532d commit 7d1dbbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/users+/$username_+/__note-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function ImageChooser({
201201
>
202202
{previewImage ? (
203203
<div className="relative">
204-
{existingImage ? (
204+
{existingImage && !previewImage.startsWith('data:') ? (
205205
<Img
206206
src={previewImage}
207207
alt={altText ?? ''}

0 commit comments

Comments
 (0)