We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d7ae20 commit 2b62d86Copy full SHA for 2b62d86
1 file changed
apps/sim/app/api/mcp/servers/[id]/route.ts
@@ -142,7 +142,8 @@ export const PATCH = withRouteHandler(
142
143
const urlChanged = body.url !== undefined && currentServer?.url !== body.url
144
const clientIdChanged =
145
- body.oauthClientId !== undefined && currentServer?.oauthClientId !== body.oauthClientId
+ body.oauthClientId !== undefined &&
146
+ (body.oauthClientId || null) !== (currentServer?.oauthClientId ?? null)
147
let clientSecretChanged = false
148
if (oauthClientSecret !== undefined) {
149
if (!oauthClientSecret) {
0 commit comments