Skip to content

Commit cde074c

Browse files
committed
fix(rippling): use null-safe guard for groupVersion param
1 parent a73a0fb commit cde074c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/sim/blocks/blocks/rippling.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ export const RipplingBlock: BlockConfig = {
341341

342342
if (params.limit != null && params.limit !== '') mapped.limit = Number(params.limit)
343343
if (params.offset != null && params.offset !== '') mapped.offset = Number(params.offset)
344-
if (params.groupVersion) mapped.version = Number(params.groupVersion)
344+
if (params.groupVersion != null && params.groupVersion !== '')
345+
mapped.version = Number(params.groupVersion)
345346
if (params.groupName) mapped.name = params.groupName
346347
if (params.candidatePhone) mapped.phone = params.candidatePhone
347348
if (params.candidateDepartment) mapped.department = params.candidateDepartment

0 commit comments

Comments
 (0)