fix: fix chunk and segment detail components (#14002)

This commit is contained in:
Wu Tianwei 2025-02-20 15:13:43 +08:00 • committed by GitHub
commit 9c42626772
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 4 additions and 11 deletions

View file

@ -80,7 +80,7 @@ export const useSegmentListContext = (selector: (value: SegmentListContextValue)
return useContextSelector(SegmentListContext, selector)
}
interface ICompletedProps {
type ICompletedProps = {
embeddingAvailable: boolean
showNewSegmentModal: boolean
onNewSegmentModalChange: (state: boolean) => void
@ -357,6 +357,7 @@ const Completed: FC<ICompletedProps> = ({
if (seg.id === segmentId) {
seg.answer = res.data.answer
seg.content = res.data.content
seg.sign_content = res.data.sign_content
seg.keywords = res.data.keywords
seg.word_count = res.data.word_count
seg.hit_count = res.data.hit_count