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;
|
metadata: GetQuoteProps;
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
if ('collectionId' in metadata) {
|
||||||
<>
|
return <CollectionQuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />;
|
||||||
{'collectionId' in metadata && (
|
} else if ('collectionIdList' in metadata) {
|
||||||
<CollectionQuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />
|
return <QuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />;
|
||||||
)}
|
}
|
||||||
{'collectionIdList' in metadata && (
|
|
||||||
<QuoteReader rawSearch={rawSearch} metadata={metadata} onClose={onClose} />
|
return null;
|
||||||
)}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ChatQuoteList;
|
export default ChatQuoteList;
|
||||||
|
Reference in New Issue
Block a user