fix: added conditions for error state

This commit is contained in:
siiddhantt 2023-10-03 23:32:08 +05:30
parent afff55045f
commit 1f356a67b2

View File

@ -100,9 +100,15 @@ const ConversationBubble = forwardRef<
>
{message}
</ReactMarkdown>
<span className="mt-3 h-px w-full bg-[#DEDEDE]"></span>
{DisableSourceFE || type === 'ERROR' ? null : (
<span className="mt-3 h-px w-full bg-[#DEDEDE]"></span>
)}
<div className="mt-3 flex w-full flex-row flex-wrap items-center justify-start gap-2">
<div className="py-1 px-2 text-base font-semibold">Sources:</div>
{DisableSourceFE || type === 'ERROR' ? null : (
<div className="py-1 px-2 text-base font-semibold">
Sources:
</div>
)}
<div className="flex flex-row flex-wrap items-center justify-start gap-2">
{DisableSourceFE
? null