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