Skip to content

Commit 8b95a86

Browse files
committed
fix(integrations): reset the shared Pipedrive status and Intercom role dropdowns when the operation changes
1 parent fd35186 commit 8b95a86

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/sim/blocks/blocks/intercom.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ export const IntercomBlock: BlockConfig = {
188188
id: 'role',
189189
title: 'Role',
190190
type: 'dropdown',
191+
dependsOn: ['operation'],
191192
/**
192-
* Update Contact leads with "No change" so a new block does not resend a role. Without block
193+
* Update Contact leads with "No change" so a new block does not resend a role, and `dependsOn`
194+
* clears the value on an operation switch so it reseeds. Without block
193195
* values (Copilot validation, catalogs) every option is listed, with "No change" last so
194196
* the default stays Lead.
195197
*/

‎apps/sim/blocks/blocks/pipedrive.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,10 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
282282
id: 'status',
283283
title: 'Status',
284284
type: 'dropdown',
285+
dependsOn: ['operation'],
285286
/**
286-
* Update Deal leads with "No change" so a new block does not reopen deals. Without block
287+
* Update Deal leads with "No change" so a new block does not reopen deals, and `dependsOn`
288+
* clears the value on an operation switch so it reseeds. Without block
287289
* values (Copilot validation, catalogs) every option is listed, with "No change" last so
288290
* the default stays Open.
289291
*/

0 commit comments

Comments
 (0)