Commit 0f3bfa28 by heheer Committed by GitHub

fix quote reader duplicate rendering (#4845)

parent 593ebfd2
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment