mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-04-28 13:00:30 +00:00
fix: added conditions for error state
This commit is contained in:
@@ -100,9 +100,15 @@ const ConversationBubble = forwardRef<
|
|||||||
>
|
>
|
||||||
{message}
|
{message}
|
||||||
</ReactMarkdown>
|
</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="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">
|
<div className="flex flex-row flex-wrap items-center justify-start gap-2">
|
||||||
{DisableSourceFE
|
{DisableSourceFE
|
||||||
? null
|
? null
|
||||||
|
|||||||
Reference in New Issue
Block a user