We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39abd9 commit 9671131Copy full SHA for 9671131
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