diff --git a/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx b/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx index 2b7265a113..ce4ad7cccc 100644 --- a/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx +++ b/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx @@ -79,9 +79,8 @@ const ChildSegmentList: FC = ({ const count = text === '--' ? 0 : total return `${count} ${t('datasetDocuments.segment.searchResults', { count })}` } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [isFullDocMode, total, childChunks.length]) + }, [isFullDocMode, total, childChunks.length, inputValue]) return (
diff --git a/web/app/components/datasets/documents/detail/completed/index.tsx b/web/app/components/datasets/documents/detail/completed/index.tsx index fa51f9d053..3a78cf0cf3 100644 --- a/web/app/components/datasets/documents/detail/completed/index.tsx +++ b/web/app/components/datasets/documents/detail/completed/index.tsx @@ -350,7 +350,7 @@ const Completed: FC = ({ return `${total} ${t('datasetDocuments.segment.searchResults', { count })}` } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [segmentListData?.total, mode, parentMode]) + }, [segmentListData?.total, mode, parentMode, searchValue, selectedStatus]) const toggleFullScreen = useCallback(() => { setFullScreen(!fullScreen)