fixed: permission error when viewing database search node responses (#4308)

Fix issue where API-called workflows with database search nodes would show
"无权操作该数据集" when trying to view full responses in conversation logs.
This commit is contained in:
LGiki
2025-03-26 10:47:39 +08:00
committed by GitHub
parent 8a68de6471
commit fc23db745c

View File

@@ -18,7 +18,7 @@ const QuoteList = React.memo(function QuoteList({
rawSearch: SearchDataResponseItemType[]; rawSearch: SearchDataResponseItemType[];
}) { }) {
const theme = useTheme(); const theme = useTheme();
const { chatId, appId, outLinkAuthData } = useChatStore(); const { appId, outLinkAuthData } = useChatStore();
const RawSourceBoxProps = useContextSelector(ChatBoxContext, (v) => ({ const RawSourceBoxProps = useContextSelector(ChatBoxContext, (v) => ({
chatItemDataId, chatItemDataId,
@@ -39,10 +39,11 @@ const QuoteList = React.memo(function QuoteList({
collectionIdList: [...new Set(rawSearch.map((item) => item.collectionId))], collectionIdList: [...new Set(rawSearch.map((item) => item.collectionId))],
chatItemDataId, chatItemDataId,
appId, appId,
chatId, chatId: RawSourceBoxProps.chatId,
...outLinkAuthData ...outLinkAuthData
}), }),
{ {
refreshDeps: [rawSearch, RawSourceBoxProps.chatId],
manual: false manual: false
} }
); );