Fix Update button disabled when clearing optional tenantID in Microsoft OAuth (#2619)

This commit is contained in:
Copilot
2025-11-20 16:30:53 -08:00
committed by GitHub
parent 4d440b22d1
commit 345acee2e4
@@ -38,8 +38,9 @@
}
};
$: secret =
clientSecret && tenantID ? JSON.stringify({ clientSecret, tenantID }) : provider.secret;
$: secret = clientSecret
? JSON.stringify({ clientSecret, ...(tenantID && { tenantID }) })
: provider.secret;
</script>
<Modal {error} onSubmit={update} bind:show on:close title={`${provider.name} OAuth2 settings`}>