fix: mensagem do usuário com destaque de busca não quebra a renderização

children=false junto com dangerouslySetInnerHTML faz o React lançar
'Can only set one of children or dangerouslySetInnerHTML'.
This commit is contained in:
evandro committed 2026-11-16 00:30:26 -03:00
1 parent 52da9be974
commit da9b5e1865
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ function ChatMessageComponent({ message, isStreaming = false, highlightTerm, hig
className="text-lg sm:text-xl font-medium tracking-tight text-foreground/90 leading-relaxed break-words whitespace-pre-wrap" className="text-lg sm:text-xl font-medium tracking-tight text-foreground/90 leading-relaxed break-words whitespace-pre-wrap"
dangerouslySetInnerHTML={highlightedContent ? { __html: highlightedContent } : undefined} dangerouslySetInnerHTML={highlightedContent ? { __html: highlightedContent } : undefined}
> >
{!highlightedContent && processedContent} {highlightedContent ? null : processedContent}
</div> </div>
) : ( ) : (
// Estilo Assistant // Estilo Assistant