mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
fix: added conditions for error state
This commit is contained in:
parent
afff55045f
commit
1f356a67b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user