panel 2 courier api restore
This commit is contained in:
parent
6eb06a5dc2
commit
65cd0f37ec
@ -212,6 +212,19 @@ function EmailContent({ email }: { email: Email }) {
|
||||
setContent(
|
||||
<div
|
||||
className="email-content prose prose-sm max-w-none dark:prose-invert"
|
||||
dangerouslySetInnerHTML={{ __html: sanitizedHtml }}
|
||||
/>
|
||||
);
|
||||
setDebugInfo('Fallback: Rendered as HTML after parser error');
|
||||
} else {
|
||||
// Just display as text
|
||||
setContent(
|
||||
<div className="email-content whitespace-pre-wrap">
|
||||
{formattedEmail}
|
||||
</div>
|
||||
);
|
||||
setDebugInfo('Fallback: Rendered as text after parser error');
|
||||
}
|
||||
}
|
||||
|
||||
setError(null);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user