fix(richtext-lexical): incorrect string interpolation in the upload converter (#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"
/>
This commit is contained in:
Andrzej Kłapeć
2024-12-19 19:03:51 +01:00
committed by GitHub
parent 23f1ed4a48
commit 6a8aecadf8

View File

@@ -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>,