fix(sendgrid): dedupe active coercion between block and tool · simstudioai/sim@4d3663e · GitHub
Skip to content

Commit 4d3663e

Browse files
committed
fix(sendgrid): dedupe active coercion between block and tool
Per Cursor Bugbot: the block's pre-coercion only recognized the dropdown string 'true' or boolean true as active, so a dynamic reference producing numeric 1 or string '1' fell through to 0 and silently created an inactive template version. Exported the tool's toActiveFlag and reused it in the block instead of duplicating the inactive-value logic, so both layers can no longer drift out of sync.
1 parent 79d3b94 commit 4d3663e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/sim/blocks/blocks/sendgrid.ts

Lines changed: 2 additions & 1 deletion

apps/sim/tools/sendgrid/create_template_version.ts

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)