Skip to content

Commit 05c3e9b

Browse files
committed
fix(peopledatalabs): narrow conditions for fields not used by every operation
- min_likelihood now only shows for pdl_person_enrich (Person Identify ignores it) - ticker, pdl_id, company_location now only show for pdl_company_enrich (Company Cleaner only accepts name/website/profile) Addresses Greptile P1 review on PR #4513.
1 parent 2fbe1fc commit 05c3e9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/blocks/blocks/peopledatalabs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
9595
title: 'Min Likelihood',
9696
type: 'short-input',
9797
placeholder: '6',
98-
condition: { field: 'operation', value: ['pdl_person_enrich', 'pdl_person_identify'] },
98+
condition: { field: 'operation', value: 'pdl_person_enrich' },
9999
mode: 'advanced',
100100
},
101101

@@ -178,22 +178,22 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
178178
title: 'Ticker',
179179
type: 'short-input',
180180
placeholder: 'AAPL',
181-
condition: { field: 'operation', value: ['pdl_company_enrich', 'pdl_clean_company'] },
181+
condition: { field: 'operation', value: 'pdl_company_enrich' },
182182
mode: 'advanced',
183183
},
184184
{
185185
id: 'pdl_id',
186186
title: 'PDL Company ID',
187187
type: 'short-input',
188-
condition: { field: 'operation', value: ['pdl_company_enrich', 'pdl_clean_company'] },
188+
condition: { field: 'operation', value: 'pdl_company_enrich' },
189189
mode: 'advanced',
190190
},
191191
{
192192
id: 'company_location',
193193
title: 'Location',
194194
type: 'short-input',
195195
placeholder: 'San Francisco, CA',
196-
condition: { field: 'operation', value: ['pdl_company_enrich', 'pdl_clean_company'] },
196+
condition: { field: 'operation', value: 'pdl_company_enrich' },
197197
mode: 'advanced',
198198
},
199199

0 commit comments

Comments
 (0)