Skip to content

Commit a03e310

Browse files
author
lcx
committed
feat: Add Feishu OAuth login & consumer-grade MCP
1 parent e485ae2 commit a03e310

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

frontend/packages/core/src/pages/mcpService/IntegrationAIContainer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const IntegrationAIContainer = forwardRef<IntegrationAIContainerRef, Inte
187187
}
188188
})
189189
.catch((errorInfo) => {
190-
message.error(errorInfo || $t(RESPONSE_TIPS.error))
190+
message.error(errorInfo?.toString() || $t(RESPONSE_TIPS.error))
191191
})
192192
}
193193

@@ -215,7 +215,7 @@ export const IntegrationAIContainer = forwardRef<IntegrationAIContainerRef, Inte
215215
}
216216
})
217217
.catch((errorInfo) => {
218-
message.error(errorInfo || $t(RESPONSE_TIPS.error))
218+
message.error(errorInfo?.toString() || $t(RESPONSE_TIPS.error))
219219
})
220220
}
221221

@@ -256,7 +256,7 @@ export const IntegrationAIContainer = forwardRef<IntegrationAIContainerRef, Inte
256256
}
257257
})
258258
.catch((errorInfo) => {
259-
message.error(errorInfo || $t(RESPONSE_TIPS.error))
259+
message.error(errorInfo?.toString() || $t(RESPONSE_TIPS.error))
260260
})
261261
}
262262

@@ -297,7 +297,7 @@ export const IntegrationAIContainer = forwardRef<IntegrationAIContainerRef, Inte
297297
}
298298
})
299299
.catch((errorInfo) => {
300-
message.error(errorInfo || $t(RESPONSE_TIPS.error))
300+
message.error(errorInfo?.toString() || $t(RESPONSE_TIPS.error))
301301
})
302302
}
303303

@@ -588,7 +588,7 @@ export const IntegrationAIContainer = forwardRef<IntegrationAIContainerRef, Inte
588588
<div className="tab-content font-semibold my-[10px]">API Key</div>
589589
{apiKeyList.length ? (
590590
<>
591-
{type === 'global' || type === 'consumer' ? (
591+
{type === 'global' ? (
592592
<>
593593
<Select
594594
showSearch

0 commit comments

Comments
 (0)