Skip to content

Commit

Permalink
fix(richtext-lexical): incorrect string interpolation in the upload c…
Browse files Browse the repository at this point in the history
…onverter (#10069)

This fixes the incorrect `<source>` `media` attribute value generation
within the upload converter.

<img width="919" alt="Zrzut ekranu 2024-12-19 o 12 21 10"
src="https://github.com/user-attachments/assets/6f26de7e-26e0-446a-83c5-6e5a776fac1e"
/>
  • Loading branch information
klapec authored Dec 19, 2024
1 parent 23f1ed4 commit 6a8aeca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const UploadJSXConverter: JSXConverters<SerializedUploadNode> = {
pictureJSX.push(
<source
key={size}
media="(max-width: ${imageSize.width}px)"
media={`(max-width: ${imageSize.width}px)`}
srcSet={imageSizeURL}
type={imageSize.mimeType}
></source>,
Expand Down

0 comments on commit 6a8aeca

Please sign in to comment.