Skip to content

Commit f19404d

Browse files
waleedlatif1claude
andcommitted
fix(peopledatalabs): programmatic input fallbacks + required autocomplete text
- Company Enrich and Clean Company now fall back to programmatic `params.profile` / `params.location` when the UI-scoped `company_profile` / `company_location` are absent. Mirrors the fallback pattern already used for `name`. - Autocomplete `text` subBlock is now required when operation is autocomplete — PDL requires it for nearly all field values. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 98899a5 commit f19404d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/sim/blocks/blocks/peopledatalabs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
228228
type: 'short-input',
229229
placeholder: 'engin',
230230
condition: { field: 'operation', value: 'pdl_autocomplete' },
231+
required: { field: 'operation', value: 'pdl_autocomplete' },
231232
},
232233
{
233234
id: 'autocomplete_size',
@@ -453,13 +454,16 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
453454
else if (params.name !== undefined) result.name = params.name
454455
if (params.website !== undefined) result.website = params.website
455456
if (params.company_profile !== undefined) result.profile = params.company_profile
457+
else if (params.profile !== undefined) result.profile = params.profile
456458
if (params.company_location !== undefined) result.location = params.company_location
459+
else if (params.location !== undefined) result.location = params.location
457460
}
458461
if (op === 'pdl_clean_company') {
459462
if (params.company_name !== undefined) result.name = params.company_name
460463
else if (params.name !== undefined) result.name = params.name
461464
if (params.website !== undefined) result.website = params.website
462465
if (params.company_profile !== undefined) result.profile = params.company_profile
466+
else if (params.profile !== undefined) result.profile = params.profile
463467
}
464468

465469
// `size` is shared by search and autocomplete subBlocks; reset and

0 commit comments

Comments
 (0)