From d8a7e894aad2ccb39b75fb56c1064b723f24586a Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 21 Nov 2023 16:07:47 +0800 Subject: [PATCH] fix: retrieval test page hide rerank model also hide retrieval config (#1585) --- .../datasets/hit-testing/modify-retrieval-modal.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx index 4ddd8d654d..31524ad1dc 100644 --- a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx +++ b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx @@ -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 = ({ const { t } = useTranslation() const [retrievalConfig, setRetrievalConfig] = useState(value) - useClickAway(() => { - if (ref) - onHide() - }, ref) + // useClickAway(() => { + // if (ref) + // onHide() + // }, ref) const { rerankDefaultModel,