mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-05 17:53:54 +02:00
remove "quotes" section (#2049)
This commit is contained in:
@@ -520,6 +520,7 @@ export const AIMessage = ({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{handleFeedback &&
|
||||
(isActive ? (
|
||||
<div
|
||||
|
@@ -723,7 +723,7 @@ export const SearchSection = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{quotes !== null && answer && (
|
||||
{quotes !== null && quotes.length > 0 && answer && (
|
||||
<div className="pt-1 border-t border-border w-full">
|
||||
<QuotesSection
|
||||
quotes={dedupedQuotes}
|
||||
|
@@ -73,10 +73,6 @@ const QuotesHeader = ({ quotes, isFetching }: QuotesSectionProps) => {
|
||||
return <>Extracting quotes...</>;
|
||||
}
|
||||
|
||||
if (!quotes || quotes.length === 0) {
|
||||
return <>No quotes found</>;
|
||||
}
|
||||
|
||||
return <>Quotes</>;
|
||||
};
|
||||
|
||||
@@ -86,16 +82,6 @@ const QuotesBody = ({ quotes, isFetching }: QuotesSectionProps) => {
|
||||
return <div className="h-[42px]"></div>;
|
||||
}
|
||||
|
||||
if (!isFetching && (!quotes || !quotes.length)) {
|
||||
return (
|
||||
<div className="flex">
|
||||
<div className="text-error text-sm my-auto">
|
||||
Did not find any exact quotes to support the above answer.
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{quotes!.map((quoteInfo) => (
|
||||
|
Reference in New Issue
Block a user