Don't set inner HTML for text email content.
It was a bad copy-paste from the HTML display.
This commit is contained in:
parent
64d4e98996
commit
895bb8ae47
|
@ -15,20 +15,13 @@ const EmailContentText: React.FC<EmailContentTextProps> = (props) => {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack>
|
||||||
<pre>
|
{email.textBody.map((t) =>
|
||||||
{email.textBody.map((t) =>
|
t.partId === undefined ? (
|
||||||
t.partId === undefined ? (
|
<pre>undefined partId</pre>
|
||||||
<Placeholder />
|
) : (
|
||||||
) : (
|
<pre key={t.partId}>{email.bodyValues![t.partId].value}</pre>
|
||||||
<div
|
),
|
||||||
key={t.partId}
|
)}
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: email.bodyValues![t.partId].value,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
</pre>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue