Skip to content

Commit

Permalink
fix: retrieval test page hide rerank model also hide retrieval config (
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Nov 21, 2023
1 parent d5acfaa commit d8a7e89
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d8a7e89

Please sign in to comment.