diff --git a/web/app/components/datasets/hit-testing/components/result-item.tsx b/web/app/components/datasets/hit-testing/components/result-item.tsx index 6e2827857a..627564d110 100644 --- a/web/app/components/datasets/hit-testing/components/result-item.tsx +++ b/web/app/components/datasets/hit-testing/components/result-item.tsx @@ -59,17 +59,19 @@ const ResultItem: FC = ({
{content}
{isParentChildRetrieval && (
-
+
-
{t(`${i18nPrefix}.hitChunks`, { num: child_chunks.length })}
-
-
- {child_chunks.map(item => ( -
- -
- ))} +
{t(`${i18nPrefix}.hitChunks`, { num: child_chunks.length })}
+ {!isFold && ( +
+ {child_chunks.map(item => ( +
+ +
+ ))} +
+ )}
)} {!isParentChildRetrieval && keywords && keywords.length > 0 && ( @@ -103,7 +105,7 @@ const ResultItem: FC = ({ /> ) } -
+ ) } export default React.memo(ResultItem)