Skip to content

Commit 4d7f749

Browse files
committed
fix(vercel): fix remaining No->false truthy-string dropdown bugs
- checkRerequestable, checkAutoUpdate, envVarsDecrypt dropdowns used id: 'false' for their No option (a truthy non-empty string), causing the conditional spread to always fire and explicitly send false instead of omitting the param - swept the whole file for this pattern; checkBlocking correctly keeps 'false' since it's a required field that's always sent directly, not conditionally
1 parent e6a4c6e commit 4d7f749

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/blocks/blocks/vercel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export const VercelBlock: BlockConfig = {
599599
title: 'Decrypt Values',
600600
type: 'dropdown',
601601
options: [
602-
{ label: 'No', id: 'false' },
602+
{ label: 'No', id: '' },
603603
{ label: 'Yes', id: 'true' },
604604
],
605605
condition: { field: 'operation', value: 'get_env_vars' },
@@ -1174,7 +1174,7 @@ export const VercelBlock: BlockConfig = {
11741174
title: 'Rerequestable',
11751175
type: 'dropdown',
11761176
options: [
1177-
{ label: 'No', id: 'false' },
1177+
{ label: 'No', id: '' },
11781178
{ label: 'Yes', id: 'true' },
11791179
],
11801180
condition: { field: 'operation', value: 'create_check' },
@@ -1193,7 +1193,7 @@ export const VercelBlock: BlockConfig = {
11931193
title: 'Auto Update',
11941194
type: 'dropdown',
11951195
options: [
1196-
{ label: 'No', id: 'false' },
1196+
{ label: 'No', id: '' },
11971197
{ label: 'Yes', id: 'true' },
11981198
],
11991199
condition: { field: 'operation', value: 'rerequest_check' },

0 commit comments

Comments
 (0)