Skip to content
Prev Previous commit
Next Next commit
fix(ses): stop coercing switch string 'false' to true in create_confi…
…guration_set

Boolean('false') evaluates to true, so turning off the
reputationMetricsEnabled or sendingEnabled switch sent the opposite of
the user's choice to SES. Match the established === 'true' string
comparison pattern used elsewhere in the codebase.
  • Loading branch information
waleedlatif1 committed Jul 6, 2026
commit b94cf1d3775da5f9cfa86f2a7e9934718992cf7c
6 changes: 4 additions & 2 deletions apps/sim/blocks/blocks/ses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,10 @@ export const SESBlock: BlockConfig<ToolResponse> = {
if (rest.tlsPolicy) result.tlsPolicy = rest.tlsPolicy
if (rest.sendingPoolName) result.sendingPoolName = rest.sendingPoolName
if (rest.reputationMetricsEnabled != null)
result.reputationMetricsEnabled = Boolean(rest.reputationMetricsEnabled)
if (rest.sendingEnabled != null) result.sendingEnabled = Boolean(rest.sendingEnabled)
result.reputationMetricsEnabled =
rest.reputationMetricsEnabled === true || rest.reputationMetricsEnabled === 'true'
if (rest.sendingEnabled != null)
result.sendingEnabled = rest.sendingEnabled === true || rest.sendingEnabled === 'true'
if (rest.suppressedReasons) result.suppressedReasons = rest.suppressedReasons
if (rest.tags) result.tags = rest.tags
break
Expand Down
Loading