Skip to content

Commit ed0ee87

Browse files
waleedlatif1claude
andcommitted
fix(okta): only forward boolean switches when explicitly true
Switch subBlocks default to OFF (false), which was being forwarded to tools and overriding their default-true behavior for sendEmail and activate params. Now only forward these when explicitly toggled ON. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 93f13f5 commit ed0ee87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/sim/blocks/blocks/okta.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ export const OktaBlock: BlockConfig<OktaResponse> = {
291291
if (params.groupName) result.name = params.groupName
292292
if (params.groupDescription) result.description = params.groupDescription
293293

294+
// Boolean switches: only forward when explicitly true so tool defaults apply when OFF
295+
if (params.sendEmail === true) result.sendEmail = true
296+
if (params.activate === true) result.activate = true
297+
294298
// Pass through all other non-empty params
295299
const skipKeys = new Set([
296300
'operation',
@@ -299,6 +303,8 @@ export const OktaBlock: BlockConfig<OktaResponse> = {
299303
'limit',
300304
'groupName',
301305
'groupDescription',
306+
'sendEmail',
307+
'activate',
302308
])
303309
for (const [key, value] of Object.entries(params)) {
304310
if (!skipKeys.has(key) && value !== undefined && value !== null && value !== '') {

0 commit comments

Comments
 (0)