Commit 5b21b4b6 by Mr-Chiang Committed by GitHub

Update:知识库名称搜索出文件夹后,点击文件夹未置空搜索框,导致进不了文件夹的下一级,工作台也有此问题 (#4404)

parent b0f0afab
......@@ -48,7 +48,8 @@ function List() {
onDelDataset,
onUpdateDataset,
myDatasets,
folderDetail
folderDetail,
setSearchKey
} = useContextSelector(DatasetsContext, (v) => v);
const [editPerDatasetIndex, setEditPerDatasetIndex] = useState<number>();
const router = useRouter();
......@@ -201,6 +202,7 @@ function List() {
}}
onClick={() => {
if (dataset.type === DatasetTypeEnum.folder) {
setSearchKey('');
router.push({
pathname: '/dataset/list',
query: {
......
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 sign in to comment