Skip to content

Commit 5ba401c

Browse files
committed
fix(jira): add defensive fallback for nullable transformUser in search_users
1 parent 2c570f2 commit 5ba401c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/tools/jira/search_users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const jiraSearchUsersTool: ToolConfig<JiraSearchUsersParams, JiraSearchUs
129129
output: {
130130
ts: new Date().toISOString(),
131131
users: users.map((user: any) => ({
132-
...transformUser(user),
132+
...(transformUser(user) ?? { accountId: '', displayName: '' }),
133133
self: user.self ?? null,
134134
})),
135135
total: users.length,

0 commit comments

Comments
 (0)