mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
fix quote reader duplicate rendering (#4845)
This commit is contained in:
@@ -13,16 +13,13 @@ const ChatQuoteList = ({
|
||||
metadata: GetQuoteProps;
|
||||
onClose: () => void;
|
||||
}) => {
|
||||
return (
|
||||
<>
|
||||
{'collectionId' in metadata && (
|
||||
<CollectionQuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />
|
||||
)}
|
||||
{'collectionIdList' in metadata && (
|
||||
<QuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
if ('collectionId' in metadata) {
|
||||
return <CollectionQuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />;
|
||||
} else if ('collectionIdList' in metadata) {
|
||||
return <QuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default ChatQuoteList;
|
||||
|
Reference in New Issue
Block a user