tool list data binding

This commit is contained in:
jZonG
2025-05-28 09:44:46 +08:00
parent 195a349cb5
commit 598c469be2
2 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ const MCPDetailContent: FC<Props> = ({
const { t } = useTranslation()
const { isCurrentWorkspaceManager } = useAppContext()
const { data: toolList = [], isPending: isGettingTools } = useMCPTools(detail.is_team_authorization ? detail.id : '')
console.log('MCPDetailContent', detail, toolList)
const { data, isPending: isGettingTools } = useMCPTools(detail.is_team_authorization ? detail.id : '')
const invalidateMCPTools = useInvalidateMCPTools()
const { mutateAsync: updateTools, isPending: isUpdating } = useUpdateMCPTools(detail.id)
const { mutateAsync: authorizeMcp, isPending: isAuthorizing } = useAuthorizeMCP()
const toolList = data?.tools || []
const handleUpdateTools = useCallback(async () => {
if (!detail)