mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
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:
@@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user