Skip to content

Commit 98899a5

Browse files
waleedlatif1claude
andcommitted
fix(peopledatalabs): honor programmatic inputs for clean_location/school
`pdl_clean_location` and `pdl_clean_school` were only restoring values from UI subBlock IDs (`clean_location_input`, `school_*`). Programmatic callers using the declared `location`/`name`/`website`/`profile` inputs had their values dropped after the shared-field reset. Add fallbacks so both UI and programmatic inputs flow through. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 80f1279 commit 98899a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/sim/blocks/blocks/peopledatalabs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,18 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
515515
if (op === 'pdl_clean_location') {
516516
if (params.clean_location_input !== undefined) {
517517
result.location = params.clean_location_input
518+
} else if (params.location !== undefined) {
519+
result.location = params.location
518520
}
519521
}
520522

521523
if (op === 'pdl_clean_school') {
522524
if (params.school_name !== undefined) result.name = params.school_name
525+
else if (params.name !== undefined) result.name = params.name
523526
if (params.school_website !== undefined) result.website = params.school_website
527+
else if (params.website !== undefined) result.website = params.website
524528
if (params.school_profile !== undefined) result.profile = params.school_profile
529+
else if (params.profile !== undefined) result.profile = params.profile
525530
}
526531

527532
return result

0 commit comments

Comments
 (0)