Unverified Commit d8a7e894 authored by Joel's avatar Joel Committed by GitHub

fix: retrieval test page hide rerank model also hide retrieval config (#1585)

parent d5acfaa1
'use client' 'use client'
import type { FC } from 'react' import type { FC } from 'react'
import React, { useRef, useState } from 'react' import React, { useRef, useState } from 'react'
import { useClickAway } from 'ahooks'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import Toast from '../../base/toast' import Toast from '../../base/toast'
import { XClose } from '@/app/components/base/icons/src/vender/line/general' import { XClose } from '@/app/components/base/icons/src/vender/line/general'
...@@ -31,10 +30,10 @@ const ModifyRetrievalModal: FC<Props> = ({ ...@@ -31,10 +30,10 @@ const ModifyRetrievalModal: FC<Props> = ({
const { t } = useTranslation() const { t } = useTranslation()
const [retrievalConfig, setRetrievalConfig] = useState(value) const [retrievalConfig, setRetrievalConfig] = useState(value)
useClickAway(() => { // useClickAway(() => {
if (ref) // if (ref)
onHide() // onHide()
}, ref) // }, ref)
const { const {
rerankDefaultModel, rerankDefaultModel,
......
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 to comment