mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 19:49:04 +08:00
fix: retrieval test page hide rerank model also hide retrieval config (#1585)
This commit is contained in:
parent
d5acfaa14e
commit
d8a7e894aa
@ -1,7 +1,6 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import React, { useRef, useState } from 'react'
|
||||
import { useClickAway } from 'ahooks'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Toast from '../../base/toast'
|
||||
import { XClose } from '@/app/components/base/icons/src/vender/line/general'
|
||||
@ -31,10 +30,10 @@ const ModifyRetrievalModal: FC<Props> = ({
|
||||
const { t } = useTranslation()
|
||||
const [retrievalConfig, setRetrievalConfig] = useState(value)
|
||||
|
||||
useClickAway(() => {
|
||||
if (ref)
|
||||
onHide()
|
||||
}, ref)
|
||||
// useClickAway(() => {
|
||||
// if (ref)
|
||||
// onHide()
|
||||
// }, ref)
|
||||
|
||||
const {
|
||||
rerankDefaultModel,
|
||||
|
Loading…
x
Reference in New Issue
Block a user