From fc23db745c8ea863376b2f4fb1b8741e277bdd8d Mon Sep 17 00:00:00 2001 From: LGiki Date: Wed, 26 Mar 2025 10:47:39 +0800 Subject: [PATCH] fixed: permission error when viewing database search node responses (#4308) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue where API-called workflows with database search nodes would show "无权操作该数据集" when trying to view full responses in conversation logs. --- .../core/chat/ChatContainer/ChatBox/components/QuoteList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/QuoteList.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/QuoteList.tsx index 7b649d93f..3867121a4 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/QuoteList.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/QuoteList.tsx @@ -18,7 +18,7 @@ const QuoteList = React.memo(function QuoteList({ rawSearch: SearchDataResponseItemType[]; }) { const theme = useTheme(); - const { chatId, appId, outLinkAuthData } = useChatStore(); + const { appId, outLinkAuthData } = useChatStore(); const RawSourceBoxProps = useContextSelector(ChatBoxContext, (v) => ({ chatItemDataId, @@ -39,10 +39,11 @@ const QuoteList = React.memo(function QuoteList({ collectionIdList: [...new Set(rawSearch.map((item) => item.collectionId))], chatItemDataId, appId, - chatId, + chatId: RawSourceBoxProps.chatId, ...outLinkAuthData }), { + refreshDeps: [rawSearch, RawSourceBoxProps.chatId], manual: false } );