From 89a817d1c931c70ba207796d136281a141f72a37 Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Wed, 30 Oct 2024 19:30:31 +0800 Subject: [PATCH] fix: dataset select cannot refresh (#3032) * fix: dataset select cannot refresh * update cors --- projects/app/src/pages/api/core/app/list.ts | 3 +-- .../src/pages/api/core/chat/feedback/updateUserFeedback.ts | 5 ++++- .../render/RenderInput/templates/SettingQuotePrompt.tsx | 2 +- projects/app/src/pages/dataset/list/component/List.tsx | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/projects/app/src/pages/api/core/app/list.ts b/projects/app/src/pages/api/core/app/list.ts index 0a6e820b32cc..20e2e7e6d314 100644 --- a/projects/app/src/pages/api/core/app/list.ts +++ b/projects/app/src/pages/api/core/app/list.ts @@ -84,8 +84,7 @@ async function handler(req: ApiRequestProps): Promise { {isOpen && } ); - }, [isOpen, onClose, onOpen, t]); + }, [isOpen, onClose, onOpen, props, t]); return Render; }; diff --git a/projects/app/src/pages/dataset/list/component/List.tsx b/projects/app/src/pages/dataset/list/component/List.tsx index 20a1ae9d50ec..947d0d0fa811 100644 --- a/projects/app/src/pages/dataset/list/component/List.tsx +++ b/projects/app/src/pages/dataset/list/component/List.tsx @@ -274,6 +274,7 @@ function List() { )} - {isPc && ( + {isPc && dataset.type !== DatasetTypeEnum.folder && (